250251252253254255256257258259260
}); } @Test public void unsignedShiftRight() { test(new Scriptable() { int act(int value) { return value >>> 1; } });
260261262263264265266267268269270
}); } @Test public void unsignedShiftRightAssignable() { test(new Scriptable() { int act(int value) { return value >>>= 1; } });
270271272273274275276277278279280
}); } @Test public void postIncrement() { test(new Scriptable() { int act(int value) { return value++; } });
280281282283284285286287288289290
}); } @Test public void postIncrementValue() { test(new Scriptable() { int act(int value) { int next = value++; return value + next; }
291292293294295296297298299300301
}); } @Test public void postIncrementLike() { test(new Scriptable() { int act(int value) { return value + 1; } });
301302303304305306307308309310311
}); } @Test public void preIncrement() { test(new Scriptable() { int act(int value) { return ++value; } });
311312313314315316317318319320321
}); } @Test public void preIncrementInStatement() { test(new Scriptable() { int act(int value) { return 2 * ++value; } });
2021222324252627282930
@SuppressWarnings("unused") public class ShortTest extends ScriptTester { @Test public void zero() { test(new Scriptable() { short act(short value) { return 0; } });
3031323334353637383940
}); } @Test public void one() { test(new Scriptable() { short act(short value) { return 1; } });
4041424344454647484950
}); } @Test public void two() { test(new Scriptable() { short act(short value) { return 2; } });