mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
add test for concat_string
This commit is contained in:
@@ -30,7 +30,7 @@ BOOST_AUTO_TEST_CASE(test_resize)
|
|||||||
thrown = true;
|
thrown = true;
|
||||||
}
|
}
|
||||||
BOOST_CHECK(!thrown);
|
BOOST_CHECK(!thrown);
|
||||||
BOOST_CHECK_EQUAL(v.size(), 10);
|
BOOST_CHECK_EQUAL(v.size(), 10u);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE(test_resize)
|
|||||||
thrown = true;
|
thrown = true;
|
||||||
}
|
}
|
||||||
BOOST_CHECK(!thrown);
|
BOOST_CHECK(!thrown);
|
||||||
BOOST_CHECK_EQUAL(a.size(), 15);
|
BOOST_CHECK_EQUAL(a.size(), 15u);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -62,3 +62,9 @@ BOOST_AUTO_TEST_CASE(test_resize)
|
|||||||
BOOST_CHECK(thrown);
|
BOOST_CHECK(thrown);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(test_concat_to_string)
|
||||||
|
{
|
||||||
|
const std::string cat = toml::concat_to_string("foo", "bar", 42);
|
||||||
|
BOOST_CHECK(cat == "foobar42");
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user