Skip to content

Commit e192831

Browse files
committed
Fixed unit tests build on Xcode 26.0
1 parent a9a92e4 commit e192831

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Tests/MarkersExtractorTests/BasicMarkersEmptyIDTests.swift

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,14 @@ import TimecodeKitCore
1111
@testable import MarkersExtractor
1212

1313
@Suite struct BasicMarkersEmptyIDTests {
14-
var settings: MarkersExtractor.Settings
15-
16-
init() throws {
17-
settings = try MarkersExtractor.Settings(
14+
/// Ensure that empty marker ID strings cause an error and abort the conversion process.
15+
@Test(arguments: MarkerIDMode.allCases)
16+
func testBasicMarkers_extractMarkers_nonEmptyMarkerIDs(idMode: MarkerIDMode) async throws {
17+
var settings = try MarkersExtractor.Settings(
1818
fcpxml: FCPXMLFile(fileContents: fcpxmlTestData),
1919
outputDir: FileManager.default.temporaryDirectory
2020
)
21-
}
22-
23-
/// Ensure that empty marker ID strings cause an error and abort the conversion process.
24-
@Test(arguments: MarkerIDMode.allCases)
25-
mutating func testBasicMarkers_extractMarkers_nonEmptyMarkerIDs(idMode: MarkerIDMode) async throws {
21+
2622
settings.idNamingMode = idMode
2723

2824
let extractor = MarkersExtractor(settings: settings)
@@ -36,7 +32,7 @@ import TimecodeKitCore
3632
do {
3733
_ = try await extractor.extractMarkers()
3834
} catch {
39-
#fail
35+
#fail("\(error.localizedDescription)")
4036
}
4137
case .name:
4238
// expect an error here - 3rd marker has an empty Name

0 commit comments

Comments
 (0)