From cc95843b37a93112de84daf370a44af49db1116f Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sat, 23 Jun 2012 11:26:17 +0200 Subject: fix #1812: GPX-Import fails at name with quotes --- tests/src/cgeo/geocaching/files/GPXParserTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/src/cgeo/geocaching/files') diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java index 53b6c33..8193fd8 100644 --- a/tests/src/cgeo/geocaching/files/GPXParserTest.java +++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java @@ -231,4 +231,14 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase { // previously these caches overwrote each other during parsing assertEquals(130, caches.size()); } + + public void testGeoToad() throws Exception { + final List caches = readGPX10(R.raw.geotoad); + assertEquals(2, caches.size()); + cgCache cache; + cache = caches.get(0); + assertEquals("GC2KN6K", cache.getGeocode()); + cache = caches.get(1); + assertEquals("GC1T3MK", cache.getGeocode()); + } } -- cgit v1.1