summaryrefslogtreecommitdiff
path: root/test/coords.cpp
blob: ac65b2c687455a4dbf12e8610b37df5cd20b7751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}