add method

This commit is contained in:
Looly
2021-10-14 09:56:04 +08:00
parent d204d58057
commit b5036b4b0b
4 changed files with 29 additions and 12 deletions

View File

@@ -53,4 +53,10 @@ public class RandomUtilTest {
final byte[] c = RandomUtil.randomBytes(10);
Assert.assertNotNull(c);
}
@Test
public void randomChineseTest(){
char c = RandomUtil.randomChinese();
Assert.assertTrue(c > 0);
}
}