2021222324252627282930
@SuppressWarnings("unused") public class ByteTest extends ScriptTester { @Test public void zero() { test(new Scriptable() { byte act(byte value) { return 0; } });
3031323334353637383940
}); } @Test public void one() { test(new Scriptable() { byte act(byte value) { return 1; } });
4041424344454647484950
}); } @Test public void two() { test(new Scriptable() { byte act(byte value) { return 2; } });
5051525354555657585960
}); } @Test public void three() { test(new Scriptable() { byte act(byte value) { return 3; } });
6061626364656667686970
}); } @Test public void minus() { test(new Scriptable() { byte act(byte value) { return -1; } });
7071727374757677787980
}); } @Test public void max() { test(new Scriptable() { byte act(byte value) { return Byte.MAX_VALUE; } });
8081828384858687888990
}); } @Test public void min() { test(new Scriptable() { byte act(byte value) { return Byte.MIN_VALUE; } });
@SuppressWarnings("unused") public class IntTest extends ScriptTester { @Test public void max() { test(new Scriptable() { int act(int value) { return Integer.MAX_VALUE; } });
}); } @Test public void min() { test(new Scriptable() { int act(int value) { return Integer.MIN_VALUE; } });
}); } @Test public void add() { test(new Scriptable() { int act(int value) { return value + 1; } });