Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 function test1() {
2 function mod(x, y) {
3 return x % y;
4 }
5 for (var i=0; i<60; i++) {
6 assertEq(mod(4, 2), 0);
7 assertEq(mod(5.5, 2.5), 0.5);
8 assertEq(mod(10.3, 0), NaN);
9 assertEq(mod(-0, -3), -0);
10
11 }
12 }
13 test1();