Improve GeoIP test
This commit is contained in:
parent
63b7780703
commit
f5c7e60296
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ public class GeoIPTest{
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetCoordinateFromLocation(){
|
public void testGetCoordinateFromLocation(){
|
||||||
|
assertArrayEquals(new Double[]{null,null},GeoIP.getCoordinateFromLocation(null));
|
||||||
assertArrayEquals(new Double[]{123.0,456.0},GeoIP.getCoordinateFromLocation("123,456"));
|
assertArrayEquals(new Double[]{123.0,456.0},GeoIP.getCoordinateFromLocation("123,456"));
|
||||||
assertArrayEquals(new Double[]{123.125,456.125},GeoIP.getCoordinateFromLocation("123.125,456.125"));
|
assertArrayEquals(new Double[]{123.125,456.125},GeoIP.getCoordinateFromLocation("123.125,456.125"));
|
||||||
assertArrayEquals(new Double[]{123.25,456.25},GeoIP.getCoordinateFromLocation("123.25,456.25"));
|
assertArrayEquals(new Double[]{123.25,456.25},GeoIP.getCoordinateFromLocation("123.25,456.25"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue