Skip to content

Commit 681db79

Browse files
committed
Improve MIC unit tests
1 parent 982e5c9 commit 681db79

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/core/src/test/java/org/locationtech/jts/algorithm/construct/MaximumInscribedCircleTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public static void main(String args[]) {
1616
public MaximumInscribedCircleTest(String name) { super(name); }
1717

1818
public void testTriangleRight() {
19-
checkCircle("POLYGON ((1 1, 1 9, 9 1, 1 1))",
20-
0.001, 3.343, 3.343, 2.343 );
19+
checkCircle("POLYGON ((1 1, 1 7, 9 1, 1 1))",
20+
0.001, 3.0, 3.0, 2.0 );
2121
}
2222

2323
public void testTriangleObtuse() {
2424
checkCircle("POLYGON ((1 1, 1 9, 2 2, 1 1))",
25-
0.001, 1.485, 2.173, 0.485 );
25+
0.001, 1.4852813742385702, 2.17157287525381, 0.4852813742385702 );
2626
}
2727

2828
public void testSquare() {
@@ -32,7 +32,7 @@ public void testSquare() {
3232

3333
public void testThinQuad() {
3434
checkCircle("POLYGON ((1 2, 9 3, 9 1, 1 1, 1 2))",
35-
0.001, 8.0623, 1.9377, 0.93774 );
35+
0.001, 8.06225774829855, 1.9377422517014502, 0.937742251701450 );
3636
}
3737

3838
public void testDiamond() {
@@ -59,7 +59,7 @@ public void testCircle() {
5959

6060
public void testKite() {
6161
checkCircle("POLYGON ((100 0, 200 200, 300 200, 300 100, 100 0))",
62-
0.01, 238.19, 138.19, 61.80 );
62+
0.01, 238.19660112501052, 138.19660112501052, 61.803398874989476 );
6363
}
6464

6565
public void testKiteWithHole() {
@@ -114,7 +114,7 @@ public void testVeryThin() {
114114

115115
public void testQuadWithCollinearVertex() {
116116
checkCircle("POLYGON ((1 5, 5 5, 9 5, 5 1, 1 5))",
117-
0.001, 5.0, 3.3431, 1.65685 );
117+
0.001, 5.0, 3.34314575050762, 1.6568542494923801 );
118118
}
119119

120120
/**

0 commit comments

Comments
 (0)