diff --git a/tests/test_get.cpp b/tests/test_get.cpp index b9c5941..833c479 100644 --- a/tests/test_get.cpp +++ b/tests/test_get.cpp @@ -12,6 +12,9 @@ #include #include #include +#if __cplusplus >= 201703L +#include +#endif BOOST_AUTO_TEST_CASE(test_get_exact) @@ -166,6 +169,17 @@ BOOST_AUTO_TEST_CASE(test_get_string_type) toml::get(v) += "bar"; BOOST_CHECK_EQUAL("foobar", toml::get(v)); } + +#if __cplusplus >= 201703L + { + toml::value v("foo", toml::string_t::basic); + BOOST_CHECK_EQUAL("foo", toml::get(v)); + } + { + toml::value v("foo", toml::string_t::literal); + BOOST_CHECK_EQUAL("foo", toml::get(v)); + } +#endif } BOOST_AUTO_TEST_CASE(test_get_toml_array)