Skip to content

Commit 244790e

Browse files
[LEET-238] add one more test case for 238
1 parent dbe3f92 commit 244790e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

leetcode-algorithms/src/test/java/com/stevesun/ProductofArrayExceptSelfTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,12 @@ public void test2(){
3939
actual = test.productExceptSelf(nums);
4040
assertArrayEquals(expected, actual);
4141
}
42+
43+
@Test
44+
public void test3(){
45+
nums = new int[]{1,2,3,4};
46+
expected = new int[]{24,12,8,6};
47+
actual = test.productExceptSelf(nums);
48+
assertArrayEquals(expected, actual);
49+
}
4250
}

0 commit comments

Comments
 (0)