mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
fid Idcard Code
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.hutool.core.util;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -66,4 +67,10 @@ public class IdcardUtilTest {
|
||||
Assert.assertEquals(province2, "内蒙古");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getGenderByIdCardTest() {
|
||||
int gender = IdcardUtil.getGenderByIdCard(ID_18);
|
||||
Assert.assertEquals(1, gender);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user