Add a text corpus to the UTF-8 tests

This commit is contained in:
Alex Beregszaszi 2017-06-26 14:29:00 +01:00
parent 551e19e884
commit ec15df2aa7

View File

@ -94,7 +94,120 @@ BOOST_AUTO_TEST_CASE(invalid)
BOOST_AUTO_TEST_CASE(corpus)
{
string source = R"(
κσμε
hélló
Ā ā Ă ă Ą ą
ƀ Ɓ Ƃ ƃ Ƅ ƅ
ɐ ɑ ɒ ɓ ɔ ɕ
ʰ ʱ ʲ ʳ ʴ ʵ
̀ ́ ̂ ̃ ̄ ̅
ϩ Ϫ ϫ Ϭ ϭ Ϯ
Ё Ђ Ѓ Є Ѕ І
Ա Բ Գ Դ Ե Զ
ק ר ש ת װ ױ
ځ ڂ ڃ ڄ څ چ
)";
size_t pos;
BOOST_CHECK(validateUTF8(source, pos));
}
BOOST_AUTO_TEST_SUITE_END()