Skip to content

Commit f10f34a

Browse files
migrate 57 to junit5
1 parent 798701a commit f10f34a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/com/fishercoder/_57Test.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package com.fishercoder;
22

33
import com.fishercoder.solutions._57;
4+
import org.junit.jupiter.api.Assertions;
45
import org.junit.jupiter.api.BeforeEach;
56
import org.junit.jupiter.api.Test;
67

7-
import static org.junit.jupiter.api.Assertions.assertEquals;
8-
98
public class _57Test {
109
private static _57.Solution1 solution1;
1110

@@ -16,7 +15,7 @@ public void setup() {
1615

1716
@Test
1817
public void test1() {
19-
assertEquals(new int[][]{
18+
Assertions.assertArrayEquals(new int[][]{
2019
{1, 5},
2120
{6, 9}
2221
}, solution1.insert(new int[][]{
@@ -28,7 +27,7 @@ public void test1() {
2827

2928
@Test
3029
public void test2() {
31-
assertEquals(new int[][]{
30+
Assertions.assertArrayEquals(new int[][]{
3231
{1, 2},
3332
{3, 10},
3433
{12, 16}

0 commit comments

Comments
 (0)