Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index b9251e9b09afc1461f58a244fad9d278e91e34d3..0769ddc9c9dfb50d388512de6314ad6c4fb17e5b 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -1151,12 +1151,23 @@ static void CheckParsesToNumber(const char* source, bool with_dot) { |
TEST(ParseNumbers) { |
+ CheckParsesToNumber("1.", true); |
CheckParsesToNumber("1.34", true); |
CheckParsesToNumber("134", false); |
CheckParsesToNumber("134e44", false); |
CheckParsesToNumber("134.e44", true); |
CheckParsesToNumber("134.44e44", true); |
CheckParsesToNumber(".44", true); |
+ |
+ CheckParsesToNumber("-1.", true); |
+ CheckParsesToNumber("-1.0", true); |
+ CheckParsesToNumber("-1.34", true); |
+ CheckParsesToNumber("-134", false); |
+ CheckParsesToNumber("-134e44", false); |
+ CheckParsesToNumber("-134.e44", true); |
+ CheckParsesToNumber("-134.44e44", true); |
+ CheckParsesToNumber("-.44", true); |
+ |
CheckParsesToNumber("+x", true); |
} |