From d56e777025f3bda29feaec22c125b0e7ab975e0c Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 14 Dec 2025 16:52:57 +0100 Subject: Format, make map equatable --- Tests/WmapParserTests/ComponentParserTests.swift | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'Tests/WmapParserTests/ComponentParserTests.swift') diff --git a/Tests/WmapParserTests/ComponentParserTests.swift b/Tests/WmapParserTests/ComponentParserTests.swift index 1f3a451..624f433 100644 --- a/Tests/WmapParserTests/ComponentParserTests.swift +++ b/Tests/WmapParserTests/ComponentParserTests.swift @@ -9,7 +9,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Dominoes", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), shape: .circle + label: "Dominoes", coordinates: WmapParser.MapPoint(xCoordinate: 0.9, yCoordinate: 0.5), + shape: .circle ) ) } @@ -33,7 +34,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "API", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.6), shape: .xMark) + label: "API", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.6), + shape: .xMark) ) } @@ -56,7 +58,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Process", coordinates: WmapParser.MapPoint(xCoordinate: 0.2, yCoordinate: 0.9), shape: .circle) + label: "Process", coordinates: WmapParser.MapPoint(xCoordinate: 0.2, yCoordinate: 0.9), + shape: .circle) ) } @@ -79,7 +82,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Item", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.123), shape: .circle) + label: "Item", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.123), + shape: .circle) ) } @@ -90,7 +94,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Item", coordinates: WmapParser.MapPoint(xCoordinate: 1.0, yCoordinate: 0.0), shape: .circle) + label: "Item", coordinates: WmapParser.MapPoint(xCoordinate: 1.0, yCoordinate: 0.0), + shape: .circle) ) } @@ -101,7 +106,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "RubberGaskets", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.5), + label: "RubberGaskets", + coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.5), shape: .circle) ) } @@ -113,7 +119,8 @@ import Testing #expect( result.components.first == WmapParser.Component( - label: "Big Lawnmowers", coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.5), + label: "Big Lawnmowers", + coordinates: WmapParser.MapPoint(xCoordinate: 0.5, yCoordinate: 0.5), shape: .circle) ) } -- cgit