From f5c7e60296a573897f0ef8008ab0b0e17f09f402 Mon Sep 17 00:00:00 2001 From: Ben van Hartingsveldt Date: Fri, 3 Jan 2025 22:11:14 +0100 Subject: [PATCH] Improve GeoIP test --- src/test/java/com/lbry/globe/tests/GeoIPTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/lbry/globe/tests/GeoIPTest.java b/src/test/java/com/lbry/globe/tests/GeoIPTest.java index 62ad76c..a99d630 100644 --- a/src/test/java/com/lbry/globe/tests/GeoIPTest.java +++ b/src/test/java/com/lbry/globe/tests/GeoIPTest.java @@ -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"));