Skip to content

Commit ce99bc5

Browse files
committed
added a test for generalize case
1 parent e7b03a9 commit ce99bc5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎src/test/java/com/esri/core/geometry/TestGeneralize.java‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,15 @@ public static void testLargeDeviation() {
105105
int pc = ((MultiPath) geom).getPointCount();
106106
assertTrue(pc == 4);
107107

108-
Geometry large_dev = OperatorGeneralize.local().execute(
108+
Geometry large_dev1 = OperatorGeneralize.local().execute(
109109
densified_geom, 40, true, null);
110-
int pc1 = ((MultiPath) large_dev).getPointCount();
110+
int pc1 = ((MultiPath) large_dev1).getPointCount();
111111
assertTrue(pc1 == 0);
112+
113+
Geometry large_dev2 = OperatorGeneralize.local().execute(
114+
densified_geom, 40, false, null);
115+
int pc2 = ((MultiPath) large_dev2).getPointCount();
116+
assertTrue(pc2 == 3);
112117
}
113118
}
114119
}

0 commit comments

Comments
 (0)