Better use of character constants
This commit is contained in:
parent
8b085f0d21
commit
322a4914a3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user