diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-04-04 17:43:51 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-04-04 17:43:51 +0400 |
commit | 20b99ed9e983dac4a80fa47d1728284d83b5f04f (patch) | |
tree | 0119a29c26ec069030d360c3a3e40a4a6d6910b0 /mert/UtilTest.cpp | |
parent | a6cec240c00f93abbcb61cff3fb6804957094f60 (diff) |
Add a test case for EndsWith().
Diffstat (limited to 'mert/UtilTest.cpp')
-rw-r--r-- | mert/UtilTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mert/UtilTest.cpp b/mert/UtilTest.cpp index c05ef4596..155ecd6aa 100644 --- a/mert/UtilTest.cpp +++ b/mert/UtilTest.cpp @@ -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", ":")); +} |