|
12 | 12 | // See the License for the specific language governing permissions and |
13 | 13 | // limitations under the License. |
14 | 14 |
|
15 | | -import XCTest |
16 | | - |
17 | 15 | @testable import App |
18 | 16 |
|
| 17 | +import Testing |
| 18 | + |
19 | 19 |
|
20 | | -final class IntExtTests: XCTestCase { |
| 20 | +@Suite struct IntExtTests { |
21 | 21 |
|
22 | | - func test_pluralizedCount() throws { |
23 | | - XCTAssertEqual(0.labeled("executable"), "no executables") |
24 | | - XCTAssertEqual(1.labeled("executable"), "1 executable") |
25 | | - XCTAssertEqual(2.labeled("executable"), "2 executables") |
| 22 | + @Test func pluralizedCount() throws { |
| 23 | + #expect(0.labeled("executable") == "no executables") |
| 24 | + #expect(1.labeled("executable") == "1 executable") |
| 25 | + #expect(2.labeled("executable") == "2 executables") |
26 | 26 |
|
27 | | - XCTAssertEqual(1.labeled("library", plural: "libraries"), "1 library") |
28 | | - XCTAssertEqual(2.labeled("library", plural: "libraries"), "2 libraries") |
| 27 | + #expect(1.labeled("library", plural: "libraries") == "1 library") |
| 28 | + #expect(2.labeled("library", plural: "libraries") == "2 libraries") |
29 | 29 |
|
30 | | - XCTAssertEqual(0.labeled("executable", capitalized: true), "No executables") |
31 | | - XCTAssertEqual(0.labeled("library", plural: "libraries", capitalized: true), "No libraries") |
| 30 | + #expect(0.labeled("executable", capitalized: true) == "No executables") |
| 31 | + #expect(0.labeled("library", plural: "libraries", capitalized: true) == "No libraries") |
32 | 32 | } |
33 | 33 |
|
34 | 34 | } |
0 commit comments