Skip to content

Commit 9b2f764

Browse files
committed
Fixed floating point rounding in test for STQuantizeCoordinates
1 parent 239fb05 commit 9b2f764

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LinqToDBPostGisNetTopologySuite.Tests/GeometryEditorsTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,11 +623,12 @@ public void TestSTQuantizeCoordinates()
623623
.STAsText()));
624624

625625
Assert.AreEqual(
626-
"POINT(100.123455047607 0)",
626+
100.123455047607,
627627
db.Select(() => GeometryEditors
628628
.STQuantizeCoordinates(
629629
GeometryConstructors.STMakePoint(100.123456, 0), 4)
630-
.STAsText()));
630+
.STX()),
631+
1.0E-12);
631632

632633
Assert.IsNull(db.Select(() => GeometryEditors.STQuantizeCoordinates((NTSG)null, 0, 0, 0, 0)));
633634
}

0 commit comments

Comments
 (0)