We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aec27e commit 2138da8Copy full SHA for 2138da8
1 file changed
core/unicode_test.cpp
@@ -105,7 +105,8 @@ TEST(Unicode, TestUTF8RoundTripExhaustive)
105
size_t at = 0;
106
char32_t y = decode_utf8(buffer, at);
107
EXPECT_NE(y, JSONNET_CODEPOINT_ERROR) << "UTF-8 roundtrip failed for codepoint " << x << " decode rejects" << std::endl;
108
- EXPECT_EQ(x, y) << "UTF-8 roundtrip failed for codepoint " << x << " converts to " << y << std::endl;
+ EXPECT_EQ(x, y) << "UTF-8 roundtrip failed for codepoint " << static_cast<uint32_t>(x)
109
+ << " converts to " << static_cast<uint32_t>(y) << std::endl;
110
EXPECT_EQ(at, buffer.size() - 1) << "UTF-8 roundtrip failed for codepoint " << x << " decodes incorrect length" << std::endl;
111
}
112
0 commit comments