static void assertBetween(int a, int b, int x) { ret if x >= a && x <= b; fail(x + " is not between " + a + " and " + b); }