Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2012-04-05 05:10:16 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-04-05 05:10:16 +0400
commitfecee1c4fc7333e4990e3930e222234a4919cb0e (patch)
tree893457a7cffe17fd2d65f4c6417a90b5697df038 /mert/UtilTest.cpp
parente2a92c0f91273cb5224a2cc5844fdfe1845f27a6 (diff)
Fix a grammar error; add more test case.
- Fix a warning, too.
Diffstat (limited to 'mert/UtilTest.cpp')
-rw-r--r--mert/UtilTest.cpp5
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", " "));
}