All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.houbb.special.chars.test.name.SpecialCharNameHelperTest Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
package com.github.houbb.special.chars.test.name;

import com.github.houbb.special.chars.name.constant.enums.SpecialCharNameTypeEnum;
import com.github.houbb.special.chars.name.util.SpecialCharNameHelper;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

/**
 * 

project: special-char-SpecialCharNameHelperTest

*

create on 2020/3/8 20:18

* * @author binbin.hou * @since 0.0.1 */ public class SpecialCharNameHelperTest { @Test public void nameTest() { List nameList = SpecialCharNameHelper.name(SpecialCharNameTypeEnum.AI_QING); Assert.assertEquals("[戒不掉丶对你的依赖, 安守那份ai, 仅有、旳依赖, 今生、你是我的唯一。, 我们曾在一起]", nameList.toString()); } @Test public void name2Test() { List nameList = SpecialCharNameHelper.name(SpecialCharNameTypeEnum.AI_QING, "我们"); Assert.assertEquals("[我们曾在一起, 我们深爱过, 我们, 年轻的我们没有谁对谁错ヽ, 简简单单、演绎我们的年华]", nameList.toString()); } @Test public void name3Test() { List nameList = SpecialCharNameHelper.name(SpecialCharNameTypeEnum.AI_QING, "我们", 6); Assert.assertEquals("[我们的故事、让人羡慕不已, ℡我们的幸福、没人能代替つ, 我们的爱情都是唯一, 在终点前,我们再爱一遍丶, 我们很暧昧つ却不属于对方]", nameList.toString()); } @Test public void name4Test() { List nameList = SpecialCharNameHelper.name(SpecialCharNameTypeEnum.AI_QING, "我们", 0,1); Assert.assertEquals("[我们曾在一起]", nameList.toString()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy