Skip to content

Commit 0d0afdb

Browse files
committed
GeoWKT test dependant on git line chcekout settings
1 parent 5c9f9b4 commit 0d0afdb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Tests/Tests/QueryDsl/Geo/GeoWKTTests.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,9 @@ public void MalformedPolygonThrowsGeoWKTException()
284284
[U]
285285
public void GeoWKTExceptionReturnsCorrectLineNumberAndPosition()
286286
{
287-
var wkt = @"POLYGON (
288-
(100, 5)
289-
(100, 10)
290-
(90, 10),
291-
(90, 5),
292-
(100, 5)";
287+
var wkt = "POLYGON (\n(100, 5) (100, 10) (90, 10), (90, 5), (100, 5)";
293288
Action action = () => GeoWKTReader.Read(wkt);
294-
action.ShouldThrow<GeoWKTException>().Which.Message.Should().Be("Expected number but found: , at line 2, position 14");
289+
action.ShouldThrow<GeoWKTException>().Which.Message.Should().Be("Expected number but found: , at line 2, position 5");
295290
}
296291

297292
}

0 commit comments

Comments
 (0)