Skip to content

Commit

Permalink
removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
oertl committed Aug 4, 2024
1 parent 93410bd commit d91a05f
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,15 @@ void testPutBooleanDefaultImplementation() {
assertBytes(h -> h.putBoolean(true), "01");
}

/*@Test
void testPutBooleansDefaultImplementation() {
assertBytes(h -> h.putBooleans(new boolean[] {true, false, true}), "010001");
assertBytes(h -> h.putBooleans(new boolean[] {true, false, true},1,2), "0001");
}*/

private static final void nextBooleans(SplittableRandom random, boolean[] b) {
private static void nextBooleans(SplittableRandom random, boolean[] b) {
byte[] bytes = new byte[b.length];
random.nextBytes(bytes);
for (int i = 0; i < bytes.length; ++i) {
b[i] = ((bytes[i] & 1) != 0);
}
}

private static final byte[] toBytes(boolean[] data) {
private static byte[] toBytes(boolean[] data) {
byte[] result = new byte[data.length];
for (int i = 0; i < data.length; ++i) {
result[i] = (byte) (data[i] ? 1 : 0);
Expand Down

0 comments on commit d91a05f

Please sign in to comment.