[android] LatLngBounds: latNorth should be greater or equal than latSouth
This commit is contained in:
@@ -496,4 +496,11 @@ public class LatLngBoundsTest {
|
||||
exception.expectMessage("longitude must not be infinite");
|
||||
LatLngBounds.from(20, 20, 0, Double.POSITIVE_INFINITY);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConstructorCheckLatSouthGreaterLatNorth() {
|
||||
exception.expect(IllegalArgumentException.class);
|
||||
exception.expectMessage("LatSouth cannot be less than latNorth");
|
||||
LatLngBounds.from(0, 20, 20, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user