diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-13 01:17:52 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-14 09:15:07 +0100 |
| commit | 03f1a7389afeadf9aa2b1d62a38e5cb0a2a7e60d (patch) | |
| tree | 2efefc34a61c62d55d8436180acfc3590287f5fd /Tests/WmapParserTests/InertiaParserTests.swift | |
Initial implementation
Diffstat (limited to 'Tests/WmapParserTests/InertiaParserTests.swift')
| -rw-r--r-- | Tests/WmapParserTests/InertiaParserTests.swift | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/WmapParserTests/InertiaParserTests.swift b/Tests/WmapParserTests/InertiaParserTests.swift new file mode 100644 index 0000000..92d9868 --- /dev/null +++ b/Tests/WmapParserTests/InertiaParserTests.swift @@ -0,0 +1,24 @@ +import Testing + +@testable import WmapParser + +@Test func shouldParseInertia() { + let source = "[Inertia] Print Media" + let result = parse(source) + #expect(result.inertias.count == 1) + #expect(result.inertias.first?.component == "Print Media") +} + +@Test func shouldHandleCaseInsensitiveInertiaKeyword() { + let source = "[inertia] Yes" + let result = parse(source) + #expect(result.inertias.count == 1) + #expect(result.inertias.first?.component == "Yes") +} + +@Test func shouldPreserveCaseInInertiaComponentLabel() { + let source = "[INERTIA] SpOnGeBoB" + let result = parse(source) + #expect(result.inertias.count == 1) + #expect(result.inertias.first?.component == "SpOnGeBoB") +} |