Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit465944d

Browse files
fishercoder1534zhahui
authored andcommitted
add test for 37
1 parent8d22998 commit465944d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
packagecom.fishercoder;
2+
3+
importcom.fishercoder.common.utils.CommonUtils;
4+
importcom.fishercoder.solutions._37;
5+
importorg.junit.BeforeClass;
6+
importorg.junit.Test;
7+
8+
publicclass_37Test {
9+
privatestatic_37.Solution1solution1;
10+
privatestaticchar[][]board;
11+
12+
@BeforeClass
13+
publicstaticvoidsetup() {
14+
solution1 =new_37.Solution1();
15+
}
16+
17+
@Test
18+
publicvoidtest1() {
19+
board =newchar[][]{
20+
{'5','3','.','.','7','.','.','.','.'},
21+
{'6','.','.','1','9','5','.','.','.'},
22+
{'.','9','8','.','.','.','.','6','.'},
23+
{'8','3','.','.','6','.','.','.','3'},
24+
{'4','.','.','8','.','3','.','.','1'},
25+
{'7','.','.','.','2','.','.','.','6'},
26+
{'.','6','.','.','7','.','2','8','.'},
27+
{'.','.','.','4','1','9','.','.','5'},
28+
{'.','.','.','.','8','.','.','7','9'}
29+
};
30+
CommonUtils.print2DCharArray(board);
31+
solution1.solveSudoku(board);
32+
CommonUtils.print2DCharArray(board);
33+
}
34+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp