diff options
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/tests/UnicodeTest.cpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/tests/UnicodeTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/tests/UnicodeTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/tests/UnicodeTest.cpp index ec7ec07caec..addf349101a 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/tests/UnicodeTest.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/tests/UnicodeTest.cpp @@ -26,9 +26,9 @@ using namespace std; TEST(UnicodeTest, isValidCodepoint) { for (uint32_t i=0; i <= 0x20; i++) - EXPECT_FALSE(Unicode::isValidCodepoint(i)); + EXPECT_FALSE(Unicode::isValidCodepoint(i)) << "i=" << i; for (uint32_t i=0x21; i <= 0x7e; i++) - EXPECT_TRUE(Unicode::isValidCodepoint(i)); + EXPECT_TRUE(Unicode::isValidCodepoint(i)) << "i=" << i; EXPECT_FALSE(Unicode::isValidCodepoint(0xfffe)); EXPECT_FALSE(Unicode::isValidCodepoint(0xffff)); EXPECT_TRUE(Unicode::isValidCodepoint(0x10000)); @@ -37,11 +37,11 @@ TEST(UnicodeTest, isValidCodepoint) { TEST(UnicodeTest, charToCodepoint) { for (uint32_t i=0; i <= 0x20; i++) - EXPECT_EQ(Unicode::charToCodepoint(i), 0xe000+i); + EXPECT_EQ(Unicode::charToCodepoint(i), 0xe000+i) << "i=" << i; for (uint32_t i=0x21; i <= 0x7e; i++) - EXPECT_EQ(Unicode::charToCodepoint(i), i); + EXPECT_EQ(Unicode::charToCodepoint(i), i) << "i=" << i; for (uint32_t i=0x7f; i <= 0x9f; i++) - EXPECT_EQ(Unicode::charToCodepoint(i), 0xe021+i-0x7f); + EXPECT_EQ(Unicode::charToCodepoint(i), 0xe021+i-0x7f) << "i=" << i; EXPECT_EQ(Unicode::charToCodepoint(0x10fffd), 0x10fffd); EXPECT_EQ(Unicode::charToCodepoint(0x10fffe), 0xe887); EXPECT_EQ(Unicode::charToCodepoint(0x10ffff), 0xe888); |