Skip to content

Commit fc70588

Browse files
author
Isaac Brodsky
committed
One more invalid input test case
1 parent d587789 commit fc70588

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/uber/h3core/TestH3Core.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ public void testExactEdgeLength() {
192192
public void testExactEdgeLengthInvalid() {
193193
// Passing in a zero should not cause a crash
194194
h3.exactEdgeLength(0, LengthUnit.rads);
195+
// Passing in a non-edge should not cause a crash
196+
h3.exactEdgeLength(h3.geoToH3(0, 0, 0), LengthUnit.km);
195197
}
196198

197199
@Test(expected = IllegalArgumentException.class)

0 commit comments

Comments
 (0)