@Test public void FiveToBoolean() { int x = 5; int size = 4; boolean[] expected = {false, true, false, true}; assertTrue(Arrays.equals(expected, Utils.fromInt(x, size))); }
@Test public void bigTest() { for (int i = 0; i < 1024; i++) { assertEquals(i, Utils.fromBooleanArray(Utils.fromInt(i, 32))); } }