diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-06-02 14:28:35 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-06-02 14:28:35 +0200 |
| commit | d2d92f04608e0877a648b08e36e8c6155a8947d3 (patch) | |
| tree | 8de080bfc067bdf69c3f4003610e6344bb98b055 /tests/src/cgeo/geocaching/geopoint | |
| parent | c2fc75e67cb016ad1884816d5fe432063488359a (diff) | |
| download | cgeo-d2d92f04608e0877a648b08e36e8c6155a8947d3.zip cgeo-d2d92f04608e0877a648b08e36e8c6155a8947d3.tar.gz cgeo-d2d92f04608e0877a648b08e36e8c6155a8947d3.tar.bz2 | |
refactoring: apply android formatter to all XML files
* makes it easier to compare and find duplicate code
Diffstat (limited to 'tests/src/cgeo/geocaching/geopoint')
| -rw-r--r-- | tests/src/cgeo/geocaching/geopoint/DistanceParserTest.java | 10 | ||||
| -rw-r--r-- | tests/src/cgeo/geocaching/geopoint/GeoPointParserTest.java | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/src/cgeo/geocaching/geopoint/DistanceParserTest.java b/tests/src/cgeo/geocaching/geopoint/DistanceParserTest.java index 52a1080..a549cf1 100644 --- a/tests/src/cgeo/geocaching/geopoint/DistanceParserTest.java +++ b/tests/src/cgeo/geocaching/geopoint/DistanceParserTest.java @@ -6,7 +6,7 @@ import junit.framework.Assert; public class DistanceParserTest extends AndroidTestCase { - static private final double MM = 1e-6; // 1mm, in kilometers + static private final double MM = 1e-6; // 1mm, in kilometers public static void testFormats() { Assert.assertEquals(1.2, DistanceParser.parseDistance("1200 m", true), MM); @@ -14,19 +14,19 @@ public class DistanceParserTest extends AndroidTestCase { Assert.assertEquals(0.36576, DistanceParser.parseDistance("1200 ft", true), MM); Assert.assertEquals(1.09728, DistanceParser.parseDistance("1200 yd", true), MM); Assert.assertEquals(1.9312128, DistanceParser.parseDistance("1.2 mi", true), MM); - } + } public static void testImplicit() { Assert.assertEquals(1.2, DistanceParser.parseDistance("1200", true), MM); Assert.assertEquals(0.36576, DistanceParser.parseDistance("1200", false), MM); - } + } public static void testComma() { Assert.assertEquals(1.2, DistanceParser.parseDistance("1,2km", true), MM); - } + } public static void testCase() { Assert.assertEquals(0.36576, DistanceParser.parseDistance("1200 FT", true), MM); - } + } }
\ No newline at end of file diff --git a/tests/src/cgeo/geocaching/geopoint/GeoPointParserTest.java b/tests/src/cgeo/geocaching/geopoint/GeoPointParserTest.java index 6b70523..2e4660b 100644 --- a/tests/src/cgeo/geocaching/geopoint/GeoPointParserTest.java +++ b/tests/src/cgeo/geocaching/geopoint/GeoPointParserTest.java @@ -31,7 +31,6 @@ public class GeoPointParserTest extends AndroidTestCase { assertNull(point); } - public static void testSouth() { assertEquals(-refLatitude, GeopointParser.parseLatitude("S 49° 56.031"), 1e-8); } |
