diff options
| author | Bananeweizen <Bananeweizen@gmx.de> | 2013-07-28 21:18:23 +0200 |
|---|---|---|
| committer | Bananeweizen <Bananeweizen@gmx.de> | 2013-07-28 21:18:23 +0200 |
| commit | 19b8392a73ed4655e6c6aa03b511ba7c70c7b177 (patch) | |
| tree | 0464dd862423e5b72f21de92c0074c0d8b6c1e8e /tests/src/cgeo/geocaching/GeocacheTest.java | |
| parent | 24413415dd85f5c4da3f86c98ec6c78fec0f257d (diff) | |
| download | cgeo-19b8392a73ed4655e6c6aa03b511ba7c70c7b177.zip cgeo-19b8392a73ed4655e6c6aa03b511ba7c70c7b177.tar.gz cgeo-19b8392a73ed4655e6c6aa03b511ba7c70c7b177.tar.bz2 | |
fix #3061: name sorting wrong for certain number combinations
Diffstat (limited to 'tests/src/cgeo/geocaching/GeocacheTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/GeocacheTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/GeocacheTest.java b/tests/src/cgeo/geocaching/GeocacheTest.java index 4052917..91497f1 100644 --- a/tests/src/cgeo/geocaching/GeocacheTest.java +++ b/tests/src/cgeo/geocaching/GeocacheTest.java @@ -206,4 +206,10 @@ public class GeocacheTest extends AndroidTestCase { assertEquals("Latitude not merged correctly", 40.0, livemap.getCoords().getLatitude(), 0.1); assertEquals("Zoomlevel not merged correctly", 12, livemap.getZoomLevel()); } + + public static void testNameForSorting() { + Geocache cache = new Geocache(); + cache.setName("GR8 01-01"); + assertEquals("GR000008 000001-000001", cache.getNameForSorting()); + } } |
