From 0193b67775dad1c2f83341d7148b90f3f8c2fe02 Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 9 Oct 2013 15:52:53 +0100 Subject: [PATCH] cpp_tests : revive parameters tests --- tests/cpp_tests/params_test.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/cpp_tests/params_test.cpp b/tests/cpp_tests/params_test.cpp index 3a7ac80e4..75a54660e 100644 --- a/tests/cpp_tests/params_test.cpp +++ b/tests/cpp_tests/params_test.cpp @@ -20,17 +20,17 @@ int main(int argc, char** argv) mapnik::parameters params; // true - //params["bool"] = true; - //BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); + params["bool"] = mapnik::value_integer(true); + BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); params["bool"] = "true"; BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); - //params["bool"] = 1; - //BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); + params["bool"] = mapnik::value_integer(1); + BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); - //params["bool"] = "1"; - //BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); + params["bool"] = "1"; + BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); params["bool"] = "True"; BOOST_TEST( (params.get("bool") && *params.get("bool") == true)); @@ -48,11 +48,11 @@ int main(int argc, char** argv) params["bool"] = "false"; BOOST_TEST( (params.get("bool") && *params.get("bool") == false) ); - //params["bool"] = 0; - //BOOST_TEST( (params.get("bool") && *params.get("bool") == false)); + params["bool"] = mapnik::value_integer(0); + BOOST_TEST( (params.get("bool") && *params.get("bool") == false)); - //params["bool"] = "0"; - //BOOST_TEST( (params.get("bool") && *params.get("bool") == false)); + params["bool"] = "0"; + BOOST_TEST( (params.get("bool") && *params.get("bool") == false)); params["bool"] = "False"; BOOST_TEST( (params.get("bool") && *params.get("bool") == false));