diff options
Diffstat (limited to 'Tests/WmapParserTests/NotesParserTests.swift')
| -rw-r--r-- | Tests/WmapParserTests/NotesParserTests.swift | 16 |
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) - ) + ) ) } |