Better use of character constants

This commit is contained in:
Mark Mentovai 2015-11-11 17:40:52 -05:00
parent 8b085f0d21
commit 322a4914a3

View File

@ -75,8 +75,8 @@ TEST(IsXDigitTest, WorksForNarrowAscii) {
}
TEST(IsXDigitTest, ReturnsFalseForNarrowNonAscii) {
EXPECT_FALSE(IsXDigit(static_cast<char>(0x80u)));
EXPECT_FALSE(IsXDigit(static_cast<char>('0' | 0x80u)));
EXPECT_FALSE(IsXDigit('\x80'));
EXPECT_FALSE(IsXDigit(static_cast<char>('0' | '\x80')));
}
TEST(IsXDigitTest, WorksForWideAscii) {