Skip to content

Commit 9a17333

Browse files
committed
I guess I don't know my ascii tables...
1 parent c299893 commit 9a17333

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/test/std/localization/codecvt_unicode.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ template <class InternT, class ExternT>
484484
void utf8_to_utf16_in_ok(const std::codecvt<InternT, ExternT, mbstate_t>& cvt) {
485485
// UTF-8 string of 1-byte CP, 2-byte CP, 3-byte CP and 4-byte CP
486486
const unsigned char input[] = "b\u0448\uAAAA\U0010AAAA";
487-
const InternT expected[] = {0x61, 0x0448, 0xAAAA, 0xDBEA, 0xDEAA, 0};
487+
const InternT expected[] = {0x62, 0x0448, 0xAAAA, 0xDBEA, 0xDEAA, 0};
488488
static_assert(array_size(input) == 11, "");
489489
static_assert(array_size(expected) == 6, "");
490490

@@ -549,7 +549,7 @@ template <class InternT, class ExternT>
549549
void utf8_to_utf16_in_partial(const std::codecvt<InternT, ExternT, mbstate_t>& cvt) {
550550
// UTF-8 string of 1-byte CP, 2-byte CP, 3-byte CP and 4-byte CP
551551
const unsigned char input[] = "b\u0448\uAAAA\U0010AAAA";
552-
const InternT expected[] = {0x61, 0x0448, 0xAAAA, 0xDBEA, 0xDEAA, 0};
552+
const InternT expected[] = {0x62, 0x0448, 0xAAAA, 0xDBEA, 0xDEAA, 0};
553553
static_assert(array_size(input) == 11, "");
554554
static_assert(array_size(expected) == 6, "");
555555

@@ -618,7 +618,7 @@ template <class InternT, class ExternT>
618618
void utf8_to_utf16_in_error(const std::codecvt<InternT, ExternT, mbstate_t>& cvt) {
619619
// UTF-8 string of 1-byte CP, 2-byte CP, 3-byte CP, 4-byte CP
620620
const unsigned char input[] = "b\u0448\uD700\U0010AAAA";
621-
const InternT expected[] = {0x61, 0x0448, 0xD700, 0xDBEA, 0xDEAA, 0};
621+
const InternT expected[] = {0x62, 0x0448, 0xD700, 0xDBEA, 0xDEAA, 0};
622622
static_assert(array_size(input) == 11, "");
623623
static_assert(array_size(expected) == 6, "");
624624

0 commit comments

Comments
 (0)