From 482cd025851b486a6520dd226deb3e47422cdffa Mon Sep 17 00:00:00 2001 From: Mickey Rose Date: Sat, 30 Jun 2018 15:12:27 +0200 Subject: [PATCH] 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` --- test/unit/datasource/csv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/datasource/csv.cpp b/test/unit/datasource/csv.cpp index 634978c45..2cf074171 100644 --- a/test/unit/datasource/csv.cpp +++ b/test/unit/datasource/csv.cpp @@ -295,8 +295,8 @@ TEST_CASE("csv") { , attr { "Phone", mapnik::value_unicode_string("(212) 334-0711") } , attr { "Address", mapnik::value_unicode_string("19 Elizabeth Street") } , attr { "Precinct", mapnik::value_unicode_string("5th Precinct") } - , attr { "geo_longitude", mapnik::value_integer(-70) } - , attr { "geo_latitude", mapnik::value_integer(40) } + , attr { "geo_longitude", mapnik::value_double(-70.0) } + , attr { "geo_latitude", mapnik::value_double(40.0) } }; REQUIRE_ATTRIBUTES(feature, expected_attr); REQUIRE_ATTRIBUTES(feature2, expected_attr);