blob: ec43febe17c7a097ba71c29f2f2a67f9988e72cd [file] [log] [blame]
description("Ensure various bit operators correctly tag the final result value");
aDouble = 100000000.5;
shouldBe("aDouble>>27", "0");
shouldBe("aDouble>>27|0", "0");
shouldBe("aDouble>>0", "100000000");
shouldBe("aDouble>>0|0", "100000000");
shouldBe("aDouble|0", "100000000");
shouldBe("(function(x){ return 2147483648>>>x; })(31)", "1");