Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bfc3fa
commit cc0e179
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
package com.fishercoder; | ||
|
||
import com.fishercoder.solutions._74; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static junit.framework.Assert.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
public class _74Test { | ||
private static _74.Solution1 solution1; | ||
private static int target; | ||
private static int[][] matrix; | ||
private static _74.Solution1 solution1; | ||
private static int target; | ||
private static int[][] matrix; | ||
|
||
@BeforeClass | ||
public static void setup() { | ||
solution1 = new _74.Solution1(); | ||
} | ||
@BeforeEach | ||
public void setup() { | ||
solution1 = new _74.Solution1(); | ||
} | ||
|
||
@Test | ||
public void test1() { | ||
target = 3; | ||
matrix = new int[][] { | ||
{1, 3, 5, 7}, | ||
{10, 11, 16, 20}, | ||
{23, 30, 34, 50}, | ||
}; | ||
assertEquals(true, solution1.searchMatrix(matrix, target)); | ||
} | ||
@Test | ||
public void test1() { | ||
target = 3; | ||
matrix = new int[][]{ | ||
{1, 3, 5, 7}, | ||
{10, 11, 16, 20}, | ||
{23, 30, 34, 50}, | ||
}; | ||
assertEquals(true, solution1.searchMatrix(matrix, target)); | ||
} | ||
} |