Index: test/cctest/test-conversions.cc |
diff --git a/test/cctest/test-conversions.cc b/test/cctest/test-conversions.cc |
index eef718482889bcd969ea66219f0df19b04187c24..1b5cc2dee88636512eeda2a1fc050aafa75e8077 100644 |
--- a/test/cctest/test-conversions.cc |
+++ b/test/cctest/test-conversions.cc |
@@ -104,8 +104,10 @@ TEST(IntegerStrLiteral) { |
CHECK_EQ(0.0, StringToDouble("000", NO_FLAGS)); |
CHECK_EQ(1.0, StringToDouble("1", NO_FLAGS)); |
CHECK_EQ(-1.0, StringToDouble("-1", NO_FLAGS)); |
- CHECK_EQ(-1.0, StringToDouble(" - 1 ", NO_FLAGS)); |
- CHECK_EQ(1.0, StringToDouble(" + 1 ", NO_FLAGS)); |
+ CHECK_EQ(-1.0, StringToDouble(" -1 ", NO_FLAGS)); |
+ CHECK_EQ(1.0, StringToDouble(" +1 ", NO_FLAGS)); |
+ CHECK(isnan(StringToDouble(" - 1 ", NO_FLAGS))); |
+ CHECK(isnan(StringToDouble(" + 1 ", NO_FLAGS))); |
CHECK_EQ(0.0, StringToDouble("0e0", ALLOW_HEX | ALLOW_OCTALS)); |
CHECK_EQ(0.0, StringToDouble("0e1", ALLOW_HEX | ALLOW_OCTALS)); |