com.github.houbb.special.chars.test.single.SpecialCharSingleHelperTest Maven / Gradle / Ivy
package com.github.houbb.special.chars.test.single;
import com.github.houbb.special.chars.single.constant.enums.SpecialCharSingleTypeEnum;
import com.github.houbb.special.chars.single.util.SpecialCharSingleHelper;
import com.github.houbb.special.chars.single.constant.enums.SpecialCharSingleTypeEnum;
import com.github.houbb.special.chars.single.util.SpecialCharSingleHelper;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
/**
* project: special-char-SpecialCharSingleHelperTest
* create on 2020/3/8 20:18
*
* @author binbin.hou
* @since 0.0.1
*/
public class SpecialCharSingleHelperTest {
@Test
public void singleTest() {
List singleList = SpecialCharSingleHelper.single(SpecialCharSingleTypeEnum.SYMBOL_PATTERN);
Assert.assertEquals("[-, ¤, §, «, º]",
singleList.toString());
}
@Test
public void single2Test() {
List singleList = SpecialCharSingleHelper.single(SpecialCharSingleTypeEnum.SYMBOL_PATTERN, "星星");
Assert.assertEquals("[✢, ✣, ✤, ✥, ❋]",
singleList.toString());
}
@Test
public void single3Test() {
List singleList = SpecialCharSingleHelper.single(SpecialCharSingleTypeEnum.SYMBOL_PATTERN, "星星", 6);
Assert.assertEquals("[✧, ※, ❇, ❈, ✩]",
singleList.toString());
}
@Test
public void single4Test() {
List singleList = SpecialCharSingleHelper.single(SpecialCharSingleTypeEnum.SYMBOL_PATTERN, "星星", 0,1);
Assert.assertEquals("[✢]",
singleList.toString());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy