Skip to content

Commit

Permalink
Add HexStringUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Dec 16, 2024
1 parent 8760399 commit 01886b2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class HexStringUtilTest {

@Test
void assertToHexString() {
assertThat(HexStringUtil.toHexString(new byte[] {(byte) 1}), is("01"));
assertThat(HexStringUtil.toHexString(new byte[] {(byte) 100}), is("64"));
assertThat(HexStringUtil.toHexString(new byte[] {(byte) 255, (byte) 256}), is("ff00"));
assertThat(HexStringUtil.toHexString(new byte[]{(byte) 1}), is("01"));
assertThat(HexStringUtil.toHexString(new byte[]{(byte) 100}), is("64"));
assertThat(HexStringUtil.toHexString(new byte[]{(byte) 255, (byte) 256}), is("ff00"));
}
}

0 comments on commit 01886b2

Please sign in to comment.