Better use of character constants
This commit is contained in:
		
							parent
							
								
									05dc6c673e
								
							
						
					
					
						commit
						a0571c5fc9
					
				@ -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