|
|
|
|
@@ -538,7 +538,7 @@ TEST(CodePointToUtf8Test, CanEncode8To11Bits) {
|
|
|
|
|
|
|
|
|
|
// 101 0111 0110 => 110-10101 10-110110
|
|
|
|
|
// Some compilers (e.g., GCC on MinGW) cannot handle non-ASCII codepoints
|
|
|
|
|
// in wide strings and wide chars. In order to accomodate them, we have to
|
|
|
|
|
// in wide strings and wide chars. In order to accommodate them, we have to
|
|
|
|
|
// introduce such character constants as integers.
|
|
|
|
|
EXPECT_EQ("\xD5\xB6",
|
|
|
|
|
CodePointToUtf8(static_cast<wchar_t>(0x576)));
|
|
|
|
|
@@ -1779,7 +1779,7 @@ TEST(Int32FromEnvOrDieDeathTest, AbortsOnFailure) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Tests that Int32FromEnvOrDie() aborts with an error message
|
|
|
|
|
// if the variable cannot be represnted by an Int32.
|
|
|
|
|
// if the variable cannot be represented by an Int32.
|
|
|
|
|
TEST(Int32FromEnvOrDieDeathTest, AbortsOnInt32Overflow) {
|
|
|
|
|
SetEnv(GTEST_FLAG_PREFIX_UPPER_ "VAR", "1234567891234567891234");
|
|
|
|
|
EXPECT_DEATH_IF_SUPPORTED(
|
|
|
|
|
@@ -3658,7 +3658,7 @@ TEST(AssertionTest, AssertFalseWithAssertionResult) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
|
// Restores warnings after previous "#pragma option push" supressed them
|
|
|
|
|
// Restores warnings after previous "#pragma option push" suppressed them
|
|
|
|
|
# pragma option pop
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
@@ -4384,7 +4384,7 @@ TEST(ExpectTest, ExpectFalseWithAssertionResult) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
|
// Restores warnings after previous "#pragma option push" supressed them
|
|
|
|
|
// Restores warnings after previous "#pragma option push" suppressed them
|
|
|
|
|
# pragma option pop
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
@@ -6642,7 +6642,7 @@ TEST(StreamingAssertionsTest, Truth2) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
|
// Restores warnings after previous "#pragma option push" supressed them
|
|
|
|
|
// Restores warnings after previous "#pragma option push" suppressed them
|
|
|
|
|
# pragma option pop
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|