diff options
author | Jan Engelhardt <[email protected]> | 2024-05-21 13:48:26 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-21 13:48:26 +0000 |
commit | c105165c6e538a48a3713d41af7a2718a105eafb (patch) | |
tree | 17b914207a16b5635002352c9252d8e219ee699e | |
parent | Fixes/comments for guessBestEncoding (#304) (diff) | |
download | vmime-c105165c6e538a48a3713d41af7a2718a105eafb.tar.gz vmime-c105165c6e538a48a3713d41af7a2718a105eafb.zip |
tests: switch a byte sequence in textTest (#305)
Switch out the byte sequence by one that is simiarly random, but one
which happens to decode as valid UTF-8, such that the expected and
actual strings are shown with reasonable characters on a terminal.
-rw-r--r-- | tests/parser/textTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parser/textTest.cpp b/tests/parser/textTest.cpp index f5111e79..6d7fe44d 100644 --- a/tests/parser/textTest.cpp +++ b/tests/parser/textTest.cpp @@ -180,7 +180,7 @@ VMIME_TEST_SUITE_BEGIN(textTest) VASSERT_EQ("1.3", vmime::charset(vmime::charsets::US_ASCII), t1.getWordAt(0)->getCharset()); vmime::string s2_1 = "some ASCII characters and special chars: "; - vmime::string s2_2 = "\xf1\xf2\xf3\xf4 "; + vmime::string s2_2 = "\xc3\xa4\xd0\xb0 "; vmime::string s2_3 = "and then more ASCII chars."; vmime::string s2 = s2_1 + s2_2 + s2_3; vmime::charset c2("test"); @@ -191,7 +191,7 @@ VMIME_TEST_SUITE_BEGIN(textTest) VASSERT_EQ("2.1", 3, t2.getWordCount()); VASSERT_EQ("2.2", "some ASCII characters and special chars: ", t2.getWordAt(0)->getBuffer()); VASSERT_EQ("2.3", vmime::charset(vmime::charsets::US_ASCII), t2.getWordAt(0)->getCharset()); - VASSERT_EQ("2.4", "\xf1\xf2\xf3\xf4", t2.getWordAt(1)->getBuffer()); + VASSERT_EQ("2.4", "\xc3\xa4\xd0\xb0", t2.getWordAt(1)->getBuffer()); VASSERT_EQ("2.5", c2, t2.getWordAt(1)->getCharset()); VASSERT_EQ("2.6", "and then more ASCII chars.", t2.getWordAt(2)->getBuffer()); VASSERT_EQ("2.7", vmime::charset(vmime::charsets::US_ASCII), t2.getWordAt(2)->getCharset()); |