diff options
Diffstat (limited to 'Tests/WmapParserTests/WmapParserTests.swift')
| -rw-r--r-- | Tests/WmapParserTests/WmapParserTests.swift | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/Tests/WmapParserTests/WmapParserTests.swift b/Tests/WmapParserTests/WmapParserTests.swift index f5dfe38..baf114f 100644 --- a/Tests/WmapParserTests/WmapParserTests.swift +++ b/Tests/WmapParserTests/WmapParserTests.swift @@ -13,12 +13,14 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Water", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle) + label: "Water", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle) ) #expect( result.components[1] == WmapParser.Component( - label: "Bucket", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), shape: .xMark) + label: "Bucket", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), + shape: .xMark) ) #expect(result.dependencies.count == 1) #expect( @@ -34,13 +36,15 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Penguins", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle + label: "Penguins", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle ) ) #expect( result.components[1] == WmapParser.Component( - label: "I Use Arch BTW", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), + label: "I Use Arch BTW", + coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), shape: .xMark) ) } @@ -52,7 +56,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Clippy", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle) + label: "Clippy", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle) ) #expect( result.components[1] @@ -69,12 +74,14 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "SE/30", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle) + label: "SE/30", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle) ) #expect( result.components[1] == WmapParser.Component( - label: "Performa", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), shape: .xMark) + label: "Performa", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), + shape: .xMark) ) } @@ -89,7 +96,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "The Void", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle + label: "The Void", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle ) ) #expect( @@ -171,12 +179,14 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Hello", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle) + label: "Hello", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle) ) #expect( result.components[1] == WmapParser.Component( - label: "It's OK", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), shape: .circle) + label: "It's OK", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), + shape: .circle) ) #expect(result.dependencies.count == 1) #expect( @@ -267,17 +277,20 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Tea", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle) + label: "Tea", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle) ) #expect( result.components[1] == WmapParser.Component( - label: "Cup", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), shape: .circle) + label: "Cup", coordinates: WmapParser.MapPoint(xCoordinate: 0.8, yCoordinate: 0.4), + shape: .circle) ) #expect( result.components[2] == WmapParser.Component( - label: "Kettle", coordinates: WmapParser.MapPoint(xCoordinate: 0.7, yCoordinate: 0.3), shape: .square) + label: "Kettle", coordinates: WmapParser.MapPoint(xCoordinate: 0.7, yCoordinate: 0.3), + shape: .square) ) #expect( result.components[3] |