170171172173174175176177178179180
}); } @Test public void modulo() { test(new Scriptable() { float act(float value) { return value % 2; } });
180181182183184185186187188189190
}); } @Test public void moduloAssignable() { test(new Scriptable() { float act(float value) { return value %= 2; } });
190191192193194195196197198199200
}); } @Test public void postIncrement() { test(new Scriptable() { float act(float value) { return value++; } });
200201202203204205206207208209210
}); } @Test public void postIncrementValue() { test(new Scriptable() { float act(float value) { float next = value++; return value + next; }
211212213214215216217218219220221
}); } @Test public void postIncrementLike() { test(new Scriptable() { float act(float value) { return value + 1; } });
221222223224225226227228229230231
}); } @Test public void preIncrement() { test(new Scriptable() { float act(float value) { return ++value; } });
231232233234235236237238239240241
}); } @Test public void equal() { test(new Scriptable() { boolean act(float value) { return value == 0; } });
241242243244245246247248249250251
}); } @Test public void notEqual() { test(new Scriptable() { boolean act(float value) { return value != 0; } });
251252253254255256257258259260261
}); } @Test public void less() { test(new Scriptable() { boolean act(float value) { return value < 1; } });
261262263264265266267268269270271
}); } @Test public void lessEqual() { test(new Scriptable() { boolean act(float value) { return value <= 1; } });