Add a test case for EndsWith().

This commit is contained in:
Tetsuo Kiso 2012-04-04 22:43:51 +09:00
parent 685f4081b2
commit 8c5e69bb70

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", ":"));
}