diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-04-05 05:10:16 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-04-05 05:10:16 +0400 |
commit | fecee1c4fc7333e4990e3930e222234a4919cb0e (patch) | |
tree | 893457a7cffe17fd2d65f4c6417a90b5697df038 /mert/UtilTest.cpp | |
parent | e2a92c0f91273cb5224a2cc5844fdfe1845f27a6 (diff) |
Fix a grammar error; add more test case.
- Fix a warning, too.
Diffstat (limited to 'mert/UtilTest.cpp')
-rw-r--r-- | mert/UtilTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mert/UtilTest.cpp b/mert/UtilTest.cpp index 155ecd6aa..2101f7c8d 100644 --- a/mert/UtilTest.cpp +++ b/mert/UtilTest.cpp @@ -68,4 +68,9 @@ BOOST_AUTO_TEST_CASE(util_ends_with_test) { BOOST_CHECK(EndsWith("abc:", ":")); BOOST_CHECK(EndsWith("a b c:", ":")); BOOST_CHECK(!EndsWith("a", ":")); + BOOST_CHECK(!EndsWith("a:b", ":")); + + BOOST_CHECK(EndsWith("ab ", " ")); + BOOST_CHECK(!EndsWith("ab", " ")); + BOOST_CHECK(!EndsWith("a b", " ")); } |