Add a test case for EndsWith().

This commit is contained in:
Tetsuo Kiso 2012-04-04 22:43:51 +09:00
parent a6cec240c0
commit 20b99ed9e9

View File

@ -63,3 +63,9 @@ BOOST_AUTO_TEST_CASE(util_tokenize_test) {
BOOST_CHECK_EQUAL("ref.1", res[1]);
}
}
BOOST_AUTO_TEST_CASE(util_ends_with_test) {
BOOST_CHECK(EndsWith("abc:", ":"));
BOOST_CHECK(EndsWith("a b c:", ":"));
BOOST_CHECK(!EndsWith("a", ":"));
}