Last change
on this file since 209 was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
597 bytes
|
Line | |
---|
1 | package list;
|
---|
2 |
|
---|
3 | import static org.junit.Assert.assertEquals;
|
---|
4 |
|
---|
5 | import java.math.BigInteger;
|
---|
6 | import java.util.Arrays;
|
---|
7 |
|
---|
8 | import org.junit.Test;
|
---|
9 |
|
---|
10 | import genius.core.list.ImArrayList;
|
---|
11 | import genius.core.list.PermutationsWithoutReturn;
|
---|
12 |
|
---|
13 | public class PermutationWithoutReturnTest {
|
---|
14 | @Test
|
---|
15 | public void test() {
|
---|
16 | ImArrayList<String> source = new ImArrayList<String>(Arrays.asList(new String[] { "a", "b", "c", "d" }));
|
---|
17 | PermutationsWithoutReturn<String> p = new PermutationsWithoutReturn<String>(source, 3);
|
---|
18 | assertEquals(BigInteger.valueOf(24), p.size());
|
---|
19 | System.out.println("data=" + p + "\n");
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.