Skip to content

Commit 4fa4a3d

Browse files
committed
Convert ArrayStringExtensionTests
1 parent 1b86efa commit 4fa4a3d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Tests/AppTests/ArrayStringExtensionTests.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@
1313
// limitations under the License.
1414

1515
@testable import App
16-
import XCTest
1716

18-
class ArrayStringExtensionTests: XCTestCase {
17+
import Testing
1918

20-
func test_pluralised() throws {
21-
XCTAssertEqual([String]().pluralized(), "None")
22-
XCTAssertEqual(["a"].pluralized(), "a")
23-
XCTAssertEqual(["a", "b"].pluralized(), "a and b")
24-
XCTAssertEqual(["a", "b", "c"].pluralized(), "a, b, and c")
19+
20+
@Suite struct ArrayStringExtensionTests {
21+
22+
@Test func pluralised() throws {
23+
#expect([String]().pluralized() == "None")
24+
#expect(["a"].pluralized() == "a")
25+
#expect(["a", "b"].pluralized() == "a and b")
26+
#expect(["a", "b", "c"].pluralized() == "a, b, and c")
2527
}
2628

2729
}

0 commit comments

Comments
 (0)