mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
037d984803
commit
068ba234da
@ -76,11 +76,11 @@ public class IdcardUtilTest {
|
||||
@Test
|
||||
public void issue3651Test() {
|
||||
DateTime date = DateUtil.parse("2014-07-11");
|
||||
int age = IdcardUtil.getAgeByIdCard("321083200807112119", date);
|
||||
int age = IdcardUtil.getAgeByIdCard("321083200807112111", date);
|
||||
assertEquals(5, age);
|
||||
|
||||
date = DateUtil.parse("2014-07-31");
|
||||
age = IdcardUtil.getAgeByIdCard("321083200807312119", date);
|
||||
age = IdcardUtil.getAgeByIdCard("321083200807312113", date);
|
||||
assertEquals(5, age);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user