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));