Fixed some bugs in byte util
This commit is contained in:
parent
28d1f04246
commit
50ea517cf3
4 changed files with 9 additions and 7 deletions
|
|
@ -109,6 +109,8 @@ public class ByteUtilTest {
|
|||
ByteUtil.shiftLeft(new byte[]{0b0000_0001}, 0));
|
||||
assertArrayEquals( new byte[]{0b0000_0001},
|
||||
ByteUtil.shiftLeft(new byte[]{0b0001_0000}, 4));
|
||||
assertArrayEquals( new byte[]{0b0000_1000},
|
||||
ByteUtil.shiftLeft(new byte[]{(byte)0b1000_0000}, 4));
|
||||
assertArrayEquals( new byte[]{0b0001_0001, 0b0000_0000},
|
||||
ByteUtil.shiftLeft(new byte[]{0b0001_0000, 0b0000_0001}, 4));
|
||||
assertArrayEquals( new byte[]{0b0100_1001, 0b0000_0001},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue