mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-23 12:50:06 +00:00
fix: fix typo in test code for string_view
This commit is contained in:
parent
1ce54a9cf9
commit
f3bdf083fe
@ -362,7 +362,7 @@ BOOST_AUTO_TEST_CASE(test_value_string)
|
||||
BOOST_CHECK_EQUAL(v3.cast<toml::value_t::Boolean>(), true);
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
std::string_view sv = "foo"
|
||||
std::string_view sv = "foo";
|
||||
|
||||
toml::value v7(sv);
|
||||
toml::value v8(sv, toml::string_t::literal);
|
||||
@ -376,8 +376,8 @@ BOOST_AUTO_TEST_CASE(test_value_string)
|
||||
BOOST_CHECK(v7.is_string());
|
||||
BOOST_CHECK(v8.is_string());
|
||||
|
||||
BOOST_CHECK_EQUAL(v7.cast<toml::value_t::String>(), sv);
|
||||
BOOST_CHECK_EQUAL(v8.cast<toml::value_t::String>(), sv);
|
||||
BOOST_CHECK_EQUAL(v7.cast<toml::value_t::String>(), "foo");
|
||||
BOOST_CHECK_EQUAL(v8.cast<toml::value_t::String>(), "foo");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user