From dbfad2a1987eb3437e69945b2f9f4c75e8abda08 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Mon, 19 Aug 2013 23:16:17 +0200 Subject: fix #3144: GPX import problem --- tests/src/cgeo/geocaching/files/GPXParserTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/src') diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java index 642ca08..892b2a0 100644 --- a/tests/src/cgeo/geocaching/files/GPXParserTest.java +++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java @@ -295,6 +295,14 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase { assertEquals(CacheSize.UNKNOWN, waymark.getSize()); } + /** + * This one uses geocodes where the first character is actually a digit, not a character + */ + public void testGCTour() throws Exception { + final List caches = readGPX10(R.raw.gctour_gpx); + assertEquals(54, caches.size()); + } + public void testOX() throws IOException, ParserException { final List caches = readGPX10(R.raw.ox1ry0y_gpx); assertEquals(1, caches.size()); -- cgit v1.1