This commit is contained in:
Looly
2019-09-09 21:58:13 +08:00
parent 7174b49906
commit 692397f313
5 changed files with 48 additions and 29 deletions

View File

@@ -3,8 +3,11 @@ package cn.hutool.core.math;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import cn.hutool.core.lang.Console;
/**
* 排列单元测试
* @author looly
@@ -51,4 +54,13 @@ public class ArrangementTest {
List<String[]> list2 = arrangement.select(0);
Assert.assertTrue(1 == list2.size());
}
@Test
@Ignore
public void selectTest2() {
List<String[]> list = MathUtil.arrangementSelect(new String[] { "1", "1", "3", "4" });
for (String[] strings : list) {
Console.log(strings);
}
}
}