From 19b8392a73ed4655e6c6aa03b511ba7c70c7b177 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sun, 28 Jul 2013 21:18:23 +0200 Subject: fix #3061: name sorting wrong for certain number combinations --- tests/src/cgeo/geocaching/GeocacheTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/src/cgeo/geocaching/GeocacheTest.java') 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()); + } } -- cgit v1.1