Merge pull request #2543 from zhaoxinhu/v5-dev

V5 dev
This commit is contained in:
Golden Looly
2022-08-20 01:06:59 +08:00
committed by GitHub
2 changed files with 58 additions and 0 deletions

View File

@@ -15,4 +15,12 @@ public class PunyCodeTest {
decode = PunyCode.decode("xn--Hutool-ux9js33tgln");
Assert.assertEquals(text, decode);
}
@Test
public void encodeEncodeDomainTest(){
String domain = "赵新虎.中国";
String strPunyCode = PunyCode.encodeDomain(domain);
String decode = PunyCode.decodeDomain(strPunyCode);
Assert.assertEquals(decode, domain);
}
}