Skip to content

Commit b6f6487

Browse files
committed
Convert S3StoreTests
1 parent dc0d3f5 commit b6f6487

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Tests/S3StoreTests/S3StoreTests.swift

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

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

17+
import Testing
18+
1919

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

22-
func test_Key_path() throws {
22+
@Test func Key_path() throws {
2323
do {
2424
let key = S3Store.Key(bucket: "bucket", path: "foo/bar")
25-
XCTAssertEqual(key.path, "foo/bar")
25+
#expect(key.path == "foo/bar")
2626
}
2727
do {
2828
let key = S3Store.Key(bucket: "bucket", path: "/foo/bar")
29-
XCTAssertEqual(key.path, "foo/bar")
29+
#expect(key.path == "foo/bar")
3030
}
3131
do {
3232
let key = S3Store.Key(bucket: "bucket", path: "//foo/bar")
33-
XCTAssertEqual(key.path, "foo/bar")
33+
#expect(key.path == "foo/bar")
3434
}
3535
}
3636

37-
func test_Key_objectUrl() throws {
37+
@Test func Key_objectUrl() throws {
3838
let key = S3Store.Key(bucket: "bucket", path: "foo/bar")
39-
XCTAssertEqual(key.objectUrl, "https://bucket.s3.us-east-2.amazonaws.com/foo/bar")
39+
#expect(key.objectUrl == "https://bucket.s3.us-east-2.amazonaws.com/foo/bar")
4040
}
4141

42-
func test_Key_s3Uri() throws {
42+
@Test func Key_s3Uri() throws {
4343
let key = S3Store.Key(bucket: "bucket", path: "foo/bar")
44-
XCTAssertEqual(key.s3Uri, "s3://bucket/foo/bar")
44+
#expect(key.s3Uri == "s3://bucket/foo/bar")
4545
}
4646

4747
}

0 commit comments

Comments
 (0)