150151152153154155156157158159160
}); } @Test public void bitAnd() { test(new Scriptable() { int act(int value) { return value & 0x010101; } });
160161162163164165166167168169170
}); } @Test public void bitOr() { test(new Scriptable() { int act(int value) { return value | 0x010101; } });
170171172173174175176177178179180
}); } @Test public void bitOrAssignable() { test(new Scriptable() { int act(int value) { return value |= 0x010101; } });
180181182183184185186187188189190
}); } @Test public void bitXor() { test(new Scriptable() { int act(int value) { return value ^ 0x010101; } });
190191192193194195196197198199200
}); } @Test public void bitXorAssignable() { test(new Scriptable() { int act(int value) { return value ^= 0x010101; } });
200201202203204205206207208209210
}); } @Test public void bitNot() { test(new Scriptable() { int act(int value) { return ~value; } });
210211212213214215216217218219220
}); } @Test public void shiftLeft() { test(new Scriptable() { int act(int value) { return value << 1; } });
220221222223224225226227228229230
}); } @Test public void shiftLeftAssignable() { test(new Scriptable() { int act(int value) { return value <<= 1; } });
230231232233234235236237238239240
}); } @Test public void shiftRight() { test(new Scriptable() { int act(int value) { return value >> 1; } });
240241242243244245246247248249250
}); } @Test public void shiftRightAssignable() { test(new Scriptable() { int act(int value) { return value >>= 1; } });