diff options
Diffstat (limited to 'test/coords.cpp')
| -rw-r--r-- | test/coords.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/coords.cpp b/test/coords.cpp new file mode 100644 index 000000000..92285795f --- /dev/null +++ b/test/coords.cpp @@ -0,0 +1,13 @@ +#include "navit/coord.h" +#include <gtest/gtest.h> + +TEST(CoordsTestSuite, none_dec) { + struct coord *result = coord_new(0,0); + const char* coord_str = "-33.355300,6.334000"; + int out = coord_parse(coord_str,projection_none,result); + ASSERT_EQ(out, 19); + + // projection_none will not output anything new + ASSERT_EQ(result->x,0); + ASSERT_EQ(result->y,0); +} |
