Skip to content

Commit 6afe3dd

Browse files
add test for 256
1 parent 97473ef commit 6afe3dd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.solutions.first_thousand._256;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
6+
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
8+
9+
public class _256Test {
10+
private static _256.Solution1 solution1;
11+
12+
@BeforeEach
13+
public void setup() {
14+
solution1 = new _256.Solution1();
15+
}
16+
17+
@Test
18+
public void test1() {
19+
assertEquals(10, solution1.minCost(new int[][]{
20+
{17, 2, 17}, {16, 16, 5}, {14, 3, 19}
21+
}));
22+
}
23+
24+
}

0 commit comments

Comments
 (0)