From ce79b9ffa4062cc3976838cb9a5fedd31f2f3614 Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi Date: Mon, 23 Feb 2015 13:38:41 +0100 Subject: Add support for more GPS coordinate formats. As requested in the user forum and in the mailing list, now support: - 46.473881 6.784696 (format used in XML files) - 48 51.491n 2 17.677e I was not able to handle the XML format in a generic way without making the code too ugly. So I've added an exception. Signed-off-by: Patrick Valsecchi Signed-off-by: Dirk Hohndel --- tests/testgpscoords.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/testgpscoords.h') diff --git a/tests/testgpscoords.h b/tests/testgpscoords.h index 5add3da93..784bc302e 100644 --- a/tests/testgpscoords.h +++ b/tests/testgpscoords.h @@ -18,6 +18,10 @@ private slots: void testDecimalParse(); void testSpaceDecimalParse(); void testDecimalInversedParse(); + void testXmlFormatParse(); + void testNoUnitParse(); + void testNegativeXmlFormatParse(); + void testPrefixNoUnitParse(); private: static void testParseOK(const QString &txt, double expectedLat, -- cgit v1.2.3-70-g09d2