File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments