[Feature] add for new

This commit is contained in:
binbin.hou
2020-01-15 19:57:14 +08:00
parent bd3b30ef95
commit 98a58450ff

View File

@@ -0,0 +1,57 @@
package com.github.houbb.sensitive.word.data;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
/**
* @author binbin.hou
* @since 0.0.11
*/
public class NumUtilTest {
@Test
public void groupNumTest() {
String nums = "" +
"一二三四五六七八九" +
"壹贰叁肆伍陆柒捌玖" +
"¹²³⁴⁵⁶⁷⁸⁹" +
"₁₂₃₄₅₆₇₈₉" +
"①②③④⑤⑥⑦⑧⑨" +
"⑴⑵⑶⑷⑸⑹⑺⑻⑼" +
"⒈⒉⒊⒋⒌⒍⒎⒏⒐" +
"❶❷❸❹❺❻❼❽❾" +
"➀➁➂➃➄➅➆➇➈" +
"➊➋➌➍➎➏➐➑➒" +
"㈠㈡㈢㈣㈤㈥㈦㈧㈨" +
"⓵⓶⓷⓸⓹⓺⓻⓼⓽" +
"㊀㊁㊂㊃㊄㊅㊆㊇㊈" +
"ⅰⅱⅲⅳⅴⅵⅶⅷⅸ" +
"ⅠⅡⅢⅣⅤⅥⅦⅧⅨ";
for(int l = 0; l < 9; l++) {
for(int i = 0; i < 16; i++) {
System.out.print(nums.charAt(i*9+l)+" ");
}
System.out.println();
}
}
@Test
public void groupEnglishTest() {
List<String> lines = Arrays.asList("ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ",
"ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ",
"⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵");
for(int i = 0; i < 26; i++) {
System.out.print(lines.get(0).charAt(i)+" ");
System.out.print(lines.get(1).charAt(i)+" ");
System.out.print(lines.get(2).charAt(i));
System.out.println();
}
}
}