Skip to content
Snippets Groups Projects
Commit 404a54e5 authored by ilor's avatar ilor
Browse files

add an ICU sanity check

parent 698d0a0c
Branches
No related merge requests found
...@@ -40,3 +40,12 @@ BOOST_AUTO_TEST_CASE( token_dup_lexemes ) ...@@ -40,3 +40,12 @@ BOOST_AUTO_TEST_CASE( token_dup_lexemes )
BOOST_CHECK(!t.remove_duplicate_lexemes()); BOOST_CHECK(!t.remove_duplicate_lexemes());
BOOST_CHECK(t == tt); BOOST_CHECK(t == tt);
} }
BOOST_AUTO_TEST_CASE( is_icu_working )
{
std::string s("aaa");
UnicodeString u(UnicodeString::fromUTF8(s));
std::string s2 = PwrNlp::to_utf8(u);
BOOST_CHECK_EQUAL(s, s2);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment