aboutsummaryrefslogtreecommitdiff
path: root/Tests/WmapParserTests/WmapParserTests.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2025-12-14 16:52:57 +0100
committerRuben Beltran del Rio <jj@r.bdr.sh>2025-12-14 17:05:21 +0100
commitd56e777025f3bda29feaec22c125b0e7ab975e0c (patch)
tree19295b051c9e32c17e32a4954fc0cdca3d4e0be5 /Tests/WmapParserTests/WmapParserTests.swift
parent0b90075f76b6f2df77c01c303322323b1395641a (diff)
Format, make map equatable
Diffstat (limited to 'Tests/WmapParserTests/WmapParserTests.swift')
-rw-r--r--Tests/WmapParserTests/WmapParserTests.swift39
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]