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

com.github.houbb.special.chars.test.combine.SpecialCharCombineHelperTest Maven / Gradle / Ivy

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

import com.github.houbb.special.chars.combine.constant.enums.SpecialCharCombineTypeEnum;
import com.github.houbb.special.chars.combine.util.SpecialCharCombineHelper;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

/**
 * 

project: special-char-SpecialCharcombineHelperTest

*

create on 2020/3/8 20:18

* * @author binbin.hou * @since 0.0.1 */ public class SpecialCharCombineHelperTest { @Test public void combineTest() { List combineList = SpecialCharCombineHelper.combine(SpecialCharCombineTypeEnum.BIAO_QING); Assert.assertEquals("[(#‵′), (-__-)b, (=‵′=), (>c<), (?↓˙)]", combineList.toString()); } @Test public void combine2Test() { List combineList = SpecialCharCombineHelper.combine(SpecialCharCombineTypeEnum.BIAO_QING, "难过"); Assert.assertEquals("[(T_T), :-(, T_T, ∑⊙TH, :-<]", combineList.toString()); } @Test public void combine3Test() { List combineList = SpecialCharCombineHelper.combine(SpecialCharCombineTypeEnum.BIAO_QING, "难过", 3); Assert.assertEquals("[∑⊙TH, :-<]", combineList.toString()); } @Test public void combine4Test() { List combineList = SpecialCharCombineHelper.combine(SpecialCharCombineTypeEnum.BIAO_QING, "难过", 0,1); Assert.assertEquals("[(T_T)]", combineList.toString()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy