Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 68c6dca

Browse files
add test for 31
1 parent ba274ec commit 68c6dca

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.common.utils.CommonUtils;
4+
import com.fishercoder.solutions._31;
5+
import org.junit.BeforeClass;
6+
import org.junit.Test;
7+
8+
public class _31Test {
9+
private static _31.Solution1 solution1;
10+
private static int[] nums;
11+
12+
@BeforeClass
13+
public static void setup() {
14+
solution1 = new _31.Solution1();
15+
}
16+
17+
@Test
18+
public void test1() {
19+
nums = new int[]{1, 2, 3};
20+
solution1.nextPermutation(nums);
21+
CommonUtils.printArray(nums);
22+
}
23+
}

0 commit comments

Comments
 (0)