test: use utf-8 rather than unicode literal

pull/344/head
nick black 4 years ago
parent 43e6d6577d
commit 8d7e6482dd
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -11,7 +11,7 @@ TEST_CASE("MultibyteWidth") {
CHECK(1 == mbswidth(" ")); // single byte, one column
CHECK(5 == mbswidth("abcde")); // single byte, one column
CHECK(1 == mbswidth("µ")); // two bytes, one column
CHECK(2 == mbswidth("🦲")); // four bytes, two columns
CHECK(2 == mbswidth("\xf0\x9f\xa6\xb2")); // four bytes, two columns
CHECK(6 == mbswidth("平仮名")); // nine bytes, six columns
CHECK(1 == mbswidth("\ufdfd")); // three bytes, ? columns, wcwidth() returns 1
}

Loading…
Cancel
Save