Skip to content

Commit 19dcb51

Browse files
add test for 136
1 parent 4e40ad0 commit 19dcb51

File tree

1 file changed

+25
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)