mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Add a test case for EndsWith().
This commit is contained in:
parent
685f4081b2
commit
8c5e69bb70
@ -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", ":"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user