Skip to content

Commit f6a95fe

Browse files
fix build for 888
1 parent 928a60a commit f6a95fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/fishercoder/_888Test.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import org.junit.BeforeClass;
55
import org.junit.Test;
66

7-
import static org.junit.Assert.assertEquals;
7+
import static org.junit.Assert.assertArrayEquals;
88

99
public class _888Test {
1010
private static _888.Solution1 solution1;
@@ -19,30 +19,30 @@ public void test1() {
1919
int [] A = {1, 1};
2020
int [] B = {2, 2};
2121
int [] ans = {1, 2};
22-
assertEquals(ans, solution1.fairCandySwap(A, B));
22+
assertArrayEquals(ans, solution1.fairCandySwap(A, B));
2323
}
2424

2525
@Test
2626
public void test2() {
2727
int [] A = {1, 2};
2828
int [] B = {2, 3};
2929
int [] ans = {1, 2};
30-
assertEquals(ans, solution1.fairCandySwap(A, B));
30+
assertArrayEquals(ans, solution1.fairCandySwap(A, B));
3131
}
3232

3333
@Test
3434
public void test3() {
3535
int [] A = {2};
3636
int [] B = {1, 3};
3737
int [] ans = {2, 3};
38-
assertEquals(ans, solution1.fairCandySwap(A, B));
38+
assertArrayEquals(ans, solution1.fairCandySwap(A, B));
3939
}
4040

4141
@Test
4242
public void test4() {
4343
int [] A = {1, 2, 5};
4444
int [] B = {2, 4};
4545
int [] ans = {5, 4};
46-
assertEquals(ans, solution1.fairCandySwap(A, B));
46+
assertArrayEquals(ans, solution1.fairCandySwap(A, B));
4747
}
4848
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy