Improve GeoIP test

This commit is contained in:
Ben van Hartingsveldt 2025-01-03 22:11:14 +01:00
parent 63b7780703
commit f5c7e60296
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB

View file

@ -10,6 +10,7 @@ public class GeoIPTest{
@Test
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.125,456.125},GeoIP.getCoordinateFromLocation("123.125,456.125"));
assertArrayEquals(new Double[]{123.25,456.25},GeoIP.getCoordinateFromLocation("123.25,456.25"));