@@ -0,0 +1,793 @@
+package com.maxmind.geoip;%0A%0A/* CityLookupTest.java */%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.io.IOException;%0A%0Aimport org.junit.Test;%0A%0Apublic class CityLookupIdxTest %7B%0A%09private static final double DELTA = 1e-5;%0A%0A%09@Test%0A%09public void testCityLookupIdx() throws IOException %7B%0A%0A%09%09LookupService cl = new LookupService(%0A%09%09%09%09%22src/test/resources/GeoIP/GeoIPCity.dat%22,%0A%09%09%09%09LookupService.GEOIP_INDEX_CACHE);%0A%0A%09%09Location l1 = cl.getLocation(%22222.230.137.0%22);%0A%0A%09%09assertEquals(%22JP%22, l1.countryCode);%0A%09%09assertEquals(%22Japan%22, l1.countryName);%0A%09%09assertEquals(%2240%22, l1.region);%0A%09%09assertEquals(%22Tokyo%22, l1.city);%0A%09%09assertEquals(35.6850, l1.latitude, DELTA);%0A%09%09assertEquals(139.7510, l1.longitude, DELTA);%0A%09%09assertEquals(0, l1.metro_code);%0A%09%09assertEquals(0, l1.area_code);%0A%09%09cl.close();%0A%09%7D%0A%0A%7D%0A

Add test case for last node out of bounds