mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
isValidCard18: 增加null的判断
This commit is contained in:
@@ -127,6 +127,10 @@ public class IdcardUtilTest {
|
||||
// 台湾人在大陆身份证
|
||||
isValidCard18 = IdcardUtil.isValidCard18("830000200209060065");
|
||||
Assert.assertTrue(isValidCard18);
|
||||
|
||||
// 身份证允许调用为空null
|
||||
isValidCard18 = !IdcardUtil.isValidCard18(null);
|
||||
Assert.assertTrue(isValidCard18);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user