Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: test/mjsunit/math-floor-part1.js

Issue 124573002: Upgrade Number constructor to ES6. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Various code improvements Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/v8natives.js ('k') | test/mjsunit/math-round.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/math-floor-part1.js
diff --git a/test/mjsunit/math-floor-part1.js b/test/mjsunit/math-floor-part1.js
index dd4deb0a06025ccae4b65787c9da71b14b135229..b57b3e20dc8782e6e655f0ecd4a66b572b654018 100644
--- a/test/mjsunit/math-floor-part1.js
+++ b/test/mjsunit/math-floor-part1.js
@@ -60,15 +60,19 @@ function test() {
testFloor(0, 0.49999999999999994);
testFloor(0, 0.5);
testFloor(0, 0.7);
+ testFloor(0, 1.0 - Number.EPSILON);
testFloor(-1, -0.1);
testFloor(-1, -0.49999999999999994);
testFloor(-1, -0.5);
testFloor(-1, -0.7);
testFloor(1, 1);
testFloor(1, 1.1);
+ testFloor(1, 1.0 + Number.EPSILON);
testFloor(1, 1.5);
testFloor(1, 1.7);
testFloor(-1, -1);
+ testFloor(-1, -1 + Number.EPSILON);
+ testFloor(-2, -1 - Number.EPSILON);
testFloor(-2, -1.1);
testFloor(-2, -1.5);
testFloor(-2, -1.7);
« no previous file with comments | « src/v8natives.js ('k') | test/mjsunit/math-round.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698