Fixed failing TCs
This commit is contained in:
parent
3edc220ed8
commit
fffaa64455
2 changed files with 12 additions and 4 deletions
|
|
@ -48,6 +48,14 @@ public class ByteUtilTest {
|
|||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void getBits(){
|
||||
assertEquals(0x01, ByteUtil.getBits((byte)0xFF, 1));
|
||||
assertEquals(0x0F, ByteUtil.getBits((byte)0xFF, 4));
|
||||
assertEquals((byte)0xFF, ByteUtil.getBits((byte)0xFF, 8));
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getBitsArray(){
|
||||
assertArrayEquals(new byte[]{}, ByteUtil.getBits(new byte[]{0x00}, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue