fid Idcard Code

This commit is contained in:
Looly
2019-09-28 02:09:31 +08:00
parent 32955b9c8c
commit daf85caf9e
20 changed files with 546 additions and 351 deletions

View File

@@ -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);
}
}