diff --git a/test/test_property_tree.hpp b/test/test_property_tree.hpp index 4f2e59648..02647d7c9 100644 --- a/test/test_property_tree.hpp +++ b/test/test_property_tree.hpp @@ -1027,14 +1027,20 @@ void test_path(PTREE *) // Test operator / { - path p = path(T("key1")) / T("key2.key3"); - BOOST_TEST(pt.get(p, 0) == 1); + path p1 = path(T("key1")) / T("key2.key3"); + BOOST_TEST(pt.get(p1, 0) == 1); + + path p2 = path(T("key1")) / std::basic_string(T("key2.key3")); + BOOST_TEST(pt.get(p2, 0) == 1); } // Test operator / { - path p = T("key1.key2") / path(T("key3")); - BOOST_TEST(pt.get(p, 0) == 1); + path p1 = T("key1.key2") / path(T("key3")); + BOOST_TEST(pt.get(p1, 0) == 1); + + path p2 = std::basic_string(T("key1.key2")) / path(T("key3")); + BOOST_TEST(pt.get(p2, 0) == 1); } }