@@ -42,7 +42,7 @@ TEST_CASE("EncodingConversion::decode - invalid byte sequences in the middle of
42
42
43
43
u16string string;
44
44
conversion->decode (string, input.data (), input.size ());
45
- REQUIRE (string == u" ab" " \ufffd " " \ufffd " " de" );
45
+ REQUIRE (string == u" ab" u "\ufffd " u "\ufffd " u " de" );
46
46
}
47
47
48
48
TEST_CASE (" EncodingConversion::decode - invalid byte sequences at the end of the input" ) {
@@ -58,7 +58,7 @@ TEST_CASE("EncodingConversion::decode - invalid byte sequences at the end of the
58
58
string.clear ();
59
59
bytes_encoded = conversion->decode (string, input.data (), input.size (), true );
60
60
REQUIRE (bytes_encoded == 4 );
61
- REQUIRE (string == u" ab" " \ufffd " " \ufffd " );
61
+ REQUIRE (string == u" ab" u "\ufffd " u "\ufffd " );
62
62
}
63
63
64
64
TEST_CASE (" EncodingConversion::decode - four-byte UTF-16 characters" ) {
@@ -67,7 +67,7 @@ TEST_CASE("EncodingConversion::decode - four-byte UTF-16 characters") {
67
67
68
68
u16string string;
69
69
conversion->decode (string, input.data (), input.size ());
70
- REQUIRE (string == u" ab" " \xd83d " " \xde01 " " cd" );
70
+ REQUIRE (string == u" ab" u "\xd83d " u "\xde01 " u " cd" );
71
71
}
72
72
73
73
TEST_CASE (" EncodingConversion::encode - basic" ) {
@@ -93,7 +93,7 @@ TEST_CASE("EncodingConversion::encode - basic") {
93
93
94
94
TEST_CASE (" EncodingConversion::encode - four-byte UTF-16 characters" ) {
95
95
auto conversion = transcoding_to (" UTF-8" );
96
- u16string string = u" ab" " \xd83d " " \xde01 " " cd" ; // 'ab😁cd'
96
+ u16string string = u" ab" u "\xd83d " u "\xde01 " u " cd" ; // 'ab😁cd'
97
97
98
98
vector<char > output (10 );
99
99
size_t bytes_encoded = 0 , start = 0 ;
@@ -116,7 +116,7 @@ TEST_CASE("EncodingConversion::encode - four-byte UTF-16 characters") {
116
116
117
117
TEST_CASE (" EncodingConversion::encode - invalid characters in the middle of the string" ) {
118
118
auto conversion = transcoding_to (" UTF-8" );
119
- u16string string = u" abc" " \xD800 " " def" ;
119
+ u16string string = u" abc" u "\xD800 " u " def" ;
120
120
121
121
vector<char > output (10 );
122
122
size_t bytes_encoded = 0 , start = 0 ;
@@ -136,7 +136,7 @@ TEST_CASE("EncodingConversion::encode - invalid characters in the middle of the
136
136
137
137
TEST_CASE (" EncodingConversion::encode - invalid characters at the end of the string" ) {
138
138
auto conversion = transcoding_to (" UTF-8" );
139
- u16string string = u" abc" " \xD800 " ;
139
+ u16string string = u" abc" u "\xD800 " ;
140
140
141
141
vector<char > output (10 );
142
142
size_t bytes_encoded = 0 , start = 0 ;
0 commit comments