Skip to content

Commit 07a4c22

Browse files
committed
Convert IntExtTests
1 parent 1fe0e02 commit 07a4c22

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Tests/AppTests/IntExtTests.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import XCTest
16-
1715
@testable import App
1816

17+
import Testing
18+
1919

20-
final class IntExtTests: XCTestCase {
20+
@Suite struct IntExtTests {
2121

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")
2626

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")
2929

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")
3232
}
3333

3434
}

0 commit comments

Comments
 (0)