Chromium Code Reviews| Index: test/mjsunit/constant-folding-2.js |
| diff --git a/test/mjsunit/constant-folding-2.js b/test/mjsunit/constant-folding-2.js |
| index 6dbb4abebf2fa9bcda716d3b7e263468e1d08ab1..284f0b3c76930be4b9ad4433ccf47307ad4cc365 100644 |
| --- a/test/mjsunit/constant-folding-2.js |
| +++ b/test/mjsunit/constant-folding-2.js |
| @@ -256,3 +256,12 @@ test(function stringCharAt() { |
| assertEquals("b", "abc".charAt(1.1)); |
| assertEquals("", "abc".charAt(4.1)); |
| }); |
| + |
| + |
| +test(function int32Mod() { |
| + assertEquals(-0, -2147483648 % (-1)); |
| +}); |
| + |
| +test(function int32Div() { |
| + assertEquals(2147483648, -2147483648 * (-1)); |
|
mvstanton
2013/05/13 07:10:08
Why is it * instead of /?
Sven Panne
2013/05/13 07:22:34
Ooops, it's just a typo which survived after tons
|
| +}); |