Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1 revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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();