introduce bitloops
This commit is contained in:
@@ -56,9 +56,9 @@ public class MainTest {
|
||||
void testStaticSlotMethods() {
|
||||
// Test static horiz
|
||||
// dir 2 (right) is horizontal
|
||||
assertTrue(Slot.horiz(2));
|
||||
assertTrue(Slot.horizv2(1));
|
||||
// dir 3 (down) is vertical
|
||||
assertFalse(Slot.horiz(3));
|
||||
assertFalse(Slot.horizv2(2));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -78,7 +78,7 @@ public class MainTest {
|
||||
@Test
|
||||
public void testHoriz() {
|
||||
assertTrue(Slot.from(2, 0L, 0L).horiz());
|
||||
assertTrue(Slot.from(4, 0L, 0L).horiz());
|
||||
assertTrue(Slot.from(0, 0L, 0L).horiz());
|
||||
assertFalse(Slot.from(1, 0L, 0L).horiz());
|
||||
assertFalse(Slot.from(3, 0L, 0L).horiz());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user