1.1 --- a/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/GeoTest.java Mon May 24 20:20:55 2010 +0200
1.2 +++ b/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/GeoTest.java Tue May 25 13:54:21 2010 +0200
1.3 @@ -20,17 +20,23 @@
1.4 @Test
1.5 public void sanghaj() {
1.6 // https://frantovo.cz/blog/?q=cina-sanghaj-mesto-lide :-)
1.7 - testuj("Shanghai, China", 31.2307080, 121.4729160);
1.8 + testuj("Shanghai, China", 31.230708, 121.472916);
1.9 }
1.10
1.11 @Test
1.12 public void dallas() {
1.13 - testuj("Dallas, TX", 32.8029550, -96.769923);
1.14 + testuj("Dallas, TX", 32.802955, -96.769923);
1.15 }
1.16
1.17 @Test
1.18 public void moskva() {
1.19 - testuj("Moscow, Russia", 55.7557860, 37.6176330);
1.20 + testuj("Moscow, Russia", 55.755786, 37.617633);
1.21 + }
1.22 +
1.23 + @Test
1.24 + public void loc() {
1.25 + Souradnice s = geo.new Souradnice(55.755786, 37.617633);
1.26 + assertEquals("Loc: 55.755786, 37.617633", s.getLoc());
1.27 }
1.28
1.29 private void testuj(String vstup, double pozadovanaSirka, double pozadovanaDelka) {