[android] LatLngBounds: latNorth should be greater or equal than latSouth

This commit is contained in:
Osana Babayan
2018-02-27 18:27:22 +01:00
committed by GitHub
parent 977e9f118c
commit 43a7db0b0b
2 changed files with 13 additions and 0 deletions

View File

@@ -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);
}
}