final String message = direction.name();
int io = i+h, in = i;
if (i >= h) io -= AxisDirections.COMPASS_COUNT;
if (i > h) in -= AxisDirections.COMPASS_COUNT;
assertEquals(message, base + i, direction.ordinal());
assertEquals(message, base + io, opposite.ordinal());
assertEquals(message, 0, AxisDirections.angleForCompass(direction, direction));
assertEquals(message, h, abs(AxisDirections.angleForCompass(direction, opposite)));
assertEquals(message, in, AxisDirections.angleForCompass(direction, NORTH));
}
}