Swift-Testingをキャッチアップ Swift6のテストライブラリSwift-Testingについて基本的な概念をまとめました。 記法 // `Testing`モジュールをインポート import Testing @testable import Your_Module // @Test(Attached Macro)マクロを使ってテスト関数を宣言 @Test func videoMetadata() { let video = Video(fileName: "...") let expectedMetadata = Metadata(duration: .seconds(90)) // #expect(Expression Macro)がXCTAssert系メソッドの代替になる。 #excpect(video.metadata == expectedMetadata } //

