This commit is contained in:
Looly 2023-04-19 18:45:32 +08:00
parent 7d4fabd201
commit 64d49ff87b

View File

@ -40,6 +40,9 @@ public class HexUtilTest {
@Test @Test
public void isHexNumberTest() { public void isHexNumberTest() {
Assertions.assertTrue(HexUtil.isHexNumber("0"));
Assertions.assertTrue(HexUtil.isHexNumber("002c"));
String a = "0x3544534F444"; String a = "0x3544534F444";
Assertions.assertTrue(HexUtil.isHexNumber(a)); Assertions.assertTrue(HexUtil.isHexNumber(a));