aboutsummaryrefslogtreecommitdiff
path: root/Tests/WmapParserTests/NotesParserTests.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/NotesParserTests.swift
parent0b90075f76b6f2df77c01c303322323b1395641a (diff)
Format, make map equatable
Diffstat (limited to 'Tests/WmapParserTests/NotesParserTests.swift')
-rw-r--r--Tests/WmapParserTests/NotesParserTests.swift16
1 files changed, 11 insertions, 5 deletions
diff --git a/Tests/WmapParserTests/NotesParserTests.swift b/Tests/WmapParserTests/NotesParserTests.swift
index ae99c75..9e906dc 100644
--- a/Tests/WmapParserTests/NotesParserTests.swift
+++ b/Tests/WmapParserTests/NotesParserTests.swift
@@ -8,7 +8,9 @@ import Testing
#expect(result.notes.count == 1)
#expect(
result.notes.first
- == WmapParser.Note(text: "This is a note", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.5))
+ == WmapParser.Note(
+ text: "This is a note", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.5)
+ )
)
}
@@ -18,7 +20,8 @@ import Testing
#expect(result.notes.count == 1)
#expect(
result.notes.first
- == WmapParser.Note(text: "Text", coordinates: WmapParser.MapPoint(xCoordinate: 0.1, yCoordinate: 0.2))
+ == WmapParser.Note(
+ text: "Text", coordinates: WmapParser.MapPoint(xCoordinate: 0.1, yCoordinate: 0.2))
)
}
@@ -28,7 +31,9 @@ import Testing
#expect(result.notes.count == 1)
#expect(
result.notes.first
- == WmapParser.Note(text: "Important NOTE", coordinates: WmapParser.MapPoint(xCoordinate: 0.77, yCoordinate: 0.19))
+ == WmapParser.Note(
+ text: "Important NOTE",
+ coordinates: WmapParser.MapPoint(xCoordinate: 0.77, yCoordinate: 0.19))
)
}
@@ -37,9 +42,10 @@ import Testing
let result = WmapParser.parse(source)
#expect(result.notes.count == 1)
#expect(
- result.notes.first == WmapParser.Note(
+ result.notes.first
+ == WmapParser.Note(
text: "",
coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.5)
- )
+ )
)
}