mirror of
https://github.com/google/googletest.git
synced 2024-12-29 03:33:40 +08:00
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…
x
Reference in New Issue
Block a user