datasource tests: fix failing csv test
- it was indeed the test that was wrong; the coordinates in nypd.csv are specified with a decimal point, thus should be `value_double`
This commit is contained in:
parent
93c379820e
commit
482cd02585
1 changed files with 2 additions and 2 deletions
|
@ -295,8 +295,8 @@ TEST_CASE("csv") {
|
||||||
, attr { "Phone", mapnik::value_unicode_string("(212) 334-0711") }
|
, attr { "Phone", mapnik::value_unicode_string("(212) 334-0711") }
|
||||||
, attr { "Address", mapnik::value_unicode_string("19 Elizabeth Street") }
|
, attr { "Address", mapnik::value_unicode_string("19 Elizabeth Street") }
|
||||||
, attr { "Precinct", mapnik::value_unicode_string("5th Precinct") }
|
, attr { "Precinct", mapnik::value_unicode_string("5th Precinct") }
|
||||||
, attr { "geo_longitude", mapnik::value_integer(-70) }
|
, attr { "geo_longitude", mapnik::value_double(-70.0) }
|
||||||
, attr { "geo_latitude", mapnik::value_integer(40) }
|
, attr { "geo_latitude", mapnik::value_double(40.0) }
|
||||||
};
|
};
|
||||||
REQUIRE_ATTRIBUTES(feature, expected_attr);
|
REQUIRE_ATTRIBUTES(feature, expected_attr);
|
||||||
REQUIRE_ATTRIBUTES(feature2, expected_attr);
|
REQUIRE_ATTRIBUTES(feature2, expected_attr);
|
||||||
|
|
Loading…
Reference in a new issue