Index: test/mjsunit/math-round.js |
diff --git a/test/mjsunit/math-round.js b/test/mjsunit/math-round.js |
index 7b87c07c6e58b65af26315c7cc536ef7999c79df..bf590692073ebc62f6f4a34d9bc098316d7e9026 100644 |
--- a/test/mjsunit/math-round.js |
+++ b/test/mjsunit/math-round.js |
@@ -80,6 +80,15 @@ testRound(-9007199254740990, -9007199254740990); |
testRound(-9007199254740991, -9007199254740991); |
testRound(Number.MAX_VALUE, Number.MAX_VALUE); |
testRound(-Number.MAX_VALUE, -Number.MAX_VALUE); |
+testRound(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER); |
+testRound(Number.MAX_SAFE_INTEGER + 1, Number.MAX_SAFE_INTEGER + 1); |
+testRound(Number.MAX_SAFE_INTEGER + 2, Number.MAX_SAFE_INTEGER + 2); |
+testRound(Number.MAX_SAFE_INTEGER + 3, Number.MAX_SAFE_INTEGER + 3); |
+testRound(Number.MAX_SAFE_INTEGER + 4, Number.MAX_SAFE_INTEGER + 4); |
+testRound(Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER); |
+testRound(Number.MIN_SAFE_INTEGER - 1, Number.MIN_SAFE_INTEGER - 1); |
+testRound(Number.MIN_SAFE_INTEGER - 2, Number.MIN_SAFE_INTEGER - 2); |
+testRound(Number.MIN_SAFE_INTEGER - 3, Number.MIN_SAFE_INTEGER - 3); |
testRound(536870911, 536870910.5); |
testRound(536870911, 536870911); |