mirror of
https://github.com/google/googletest.git
synced 2025-03-20 10:53:47 +00: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) {
|
TEST(IsXDigitTest, ReturnsFalseForNarrowNonAscii) {
|
||||||
EXPECT_FALSE(IsXDigit(static_cast<char>(0x80u)));
|
EXPECT_FALSE(IsXDigit('\x80'));
|
||||||
EXPECT_FALSE(IsXDigit(static_cast<char>('0' | 0x80u)));
|
EXPECT_FALSE(IsXDigit(static_cast<char>('0' | '\x80')));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(IsXDigitTest, WorksForWideAscii) {
|
TEST(IsXDigitTest, WorksForWideAscii) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user