generated from trianta/cpp-unity-template
Compare commits
No commits in common. "d35bd25e2848073c92250d2461bbab7841e9dedd" and "f509269fb2312af58b64c0b31e9fc42b08d027ec" have entirely different histories.
d35bd25e28
...
f509269fb2
@ -1,9 +1,7 @@
|
|||||||
find_package(unity REQUIRED)
|
find_package(unity REQUIRED)
|
||||||
include_directories(${sudoku_SOURCE_DIR}/src)
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
||||||
add_executable(testing
|
add_executable(testing
|
||||||
test.cpp
|
test.cpp
|
||||||
test_list.cpp
|
|
||||||
../src/sudoku.cpp
|
|
||||||
)
|
)
|
||||||
set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX)
|
set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX)
|
||||||
target_link_libraries(testing unity)
|
target_link_libraries(testing unity)
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
003020600
|
|
||||||
900305001
|
|
||||||
001806400
|
|
||||||
008102900
|
|
||||||
700000008
|
|
||||||
006708200
|
|
||||||
002609500
|
|
||||||
800203009
|
|
||||||
005010300
|
|
@ -1,9 +0,0 @@
|
|||||||
200080300
|
|
||||||
060070084
|
|
||||||
030500209
|
|
||||||
000105408
|
|
||||||
000000000
|
|
||||||
402706000
|
|
||||||
301007040
|
|
||||||
720040060
|
|
||||||
004010003
|
|
@ -1,9 +0,0 @@
|
|||||||
000000907
|
|
||||||
000420180
|
|
||||||
000705026
|
|
||||||
100904000
|
|
||||||
050000040
|
|
||||||
000507009
|
|
||||||
920108000
|
|
||||||
034059000
|
|
||||||
507000000
|
|
@ -1,9 +0,0 @@
|
|||||||
030050040
|
|
||||||
008010500
|
|
||||||
460000012
|
|
||||||
070502080
|
|
||||||
000603000
|
|
||||||
040109030
|
|
||||||
250000098
|
|
||||||
001020600
|
|
||||||
080060020
|
|
@ -1,9 +0,0 @@
|
|||||||
020810740
|
|
||||||
700003100
|
|
||||||
090002805
|
|
||||||
009040087
|
|
||||||
400208003
|
|
||||||
160030200
|
|
||||||
302700060
|
|
||||||
005600008
|
|
||||||
076051090
|
|
@ -1,9 +0,0 @@
|
|||||||
100920000
|
|
||||||
524010000
|
|
||||||
000000070
|
|
||||||
050008102
|
|
||||||
000000000
|
|
||||||
402700090
|
|
||||||
060000000
|
|
||||||
000030945
|
|
||||||
000071006
|
|
@ -1,9 +0,0 @@
|
|||||||
043080250
|
|
||||||
600000000
|
|
||||||
000001094
|
|
||||||
900004070
|
|
||||||
000608000
|
|
||||||
010200003
|
|
||||||
820500000
|
|
||||||
000000005
|
|
||||||
034090710
|
|
@ -1,9 +0,0 @@
|
|||||||
480006902
|
|
||||||
002008001
|
|
||||||
900370060
|
|
||||||
840010200
|
|
||||||
003704100
|
|
||||||
001060049
|
|
||||||
020085007
|
|
||||||
700900600
|
|
||||||
609200018
|
|
@ -1,9 +0,0 @@
|
|||||||
000900002
|
|
||||||
050123400
|
|
||||||
030000160
|
|
||||||
908000000
|
|
||||||
070000090
|
|
||||||
000000205
|
|
||||||
091000050
|
|
||||||
007439020
|
|
||||||
400007000
|
|
@ -1,9 +0,0 @@
|
|||||||
001900003
|
|
||||||
900700160
|
|
||||||
030005007
|
|
||||||
050000009
|
|
||||||
004302600
|
|
||||||
200000070
|
|
||||||
600100030
|
|
||||||
042007006
|
|
||||||
500006800
|
|
@ -1,9 +0,0 @@
|
|||||||
000125400
|
|
||||||
008400000
|
|
||||||
420800000
|
|
||||||
030000095
|
|
||||||
060902010
|
|
||||||
510000060
|
|
||||||
000003049
|
|
||||||
000007200
|
|
||||||
001298000
|
|
@ -1,9 +0,0 @@
|
|||||||
062340750
|
|
||||||
100005600
|
|
||||||
570000040
|
|
||||||
000094800
|
|
||||||
400000006
|
|
||||||
005830000
|
|
||||||
030000091
|
|
||||||
006400007
|
|
||||||
059083260
|
|
@ -1,9 +0,0 @@
|
|||||||
300000000
|
|
||||||
005009000
|
|
||||||
200504000
|
|
||||||
020000700
|
|
||||||
160000058
|
|
||||||
704310600
|
|
||||||
000890100
|
|
||||||
000067080
|
|
||||||
000005437
|
|
@ -1,9 +0,0 @@
|
|||||||
630000000
|
|
||||||
000500008
|
|
||||||
005674000
|
|
||||||
000020000
|
|
||||||
003401020
|
|
||||||
000000345
|
|
||||||
000007004
|
|
||||||
080300902
|
|
||||||
947100080
|
|
@ -1,9 +0,0 @@
|
|||||||
000020040
|
|
||||||
008035000
|
|
||||||
000070602
|
|
||||||
031046970
|
|
||||||
200000000
|
|
||||||
000501203
|
|
||||||
049000730
|
|
||||||
000000010
|
|
||||||
800004000
|
|
@ -1,9 +0,0 @@
|
|||||||
361025900
|
|
||||||
080960010
|
|
||||||
400000057
|
|
||||||
008000471
|
|
||||||
000603000
|
|
||||||
259000800
|
|
||||||
740000005
|
|
||||||
020018060
|
|
||||||
005470329
|
|
@ -1,9 +0,0 @@
|
|||||||
050807020
|
|
||||||
600010090
|
|
||||||
702540006
|
|
||||||
070020301
|
|
||||||
504000908
|
|
||||||
103080070
|
|
||||||
900076205
|
|
||||||
060090003
|
|
||||||
080103040
|
|
@ -1,9 +0,0 @@
|
|||||||
080005000
|
|
||||||
000003457
|
|
||||||
000070809
|
|
||||||
060400903
|
|
||||||
007010500
|
|
||||||
408007020
|
|
||||||
901020000
|
|
||||||
842300000
|
|
||||||
000100080
|
|
@ -1,9 +0,0 @@
|
|||||||
003502900
|
|
||||||
000040000
|
|
||||||
106000305
|
|
||||||
900251008
|
|
||||||
070408030
|
|
||||||
800763001
|
|
||||||
308000104
|
|
||||||
000020000
|
|
||||||
005104800
|
|
@ -1,9 +0,0 @@
|
|||||||
000000000
|
|
||||||
009805100
|
|
||||||
051907420
|
|
||||||
290401065
|
|
||||||
000000000
|
|
||||||
140508093
|
|
||||||
026709580
|
|
||||||
005103600
|
|
||||||
000000000
|
|
@ -1,9 +0,0 @@
|
|||||||
020030090
|
|
||||||
000907000
|
|
||||||
900208005
|
|
||||||
004806500
|
|
||||||
607000208
|
|
||||||
003102900
|
|
||||||
800605007
|
|
||||||
000309000
|
|
||||||
030020050
|
|
@ -1,9 +0,0 @@
|
|||||||
005000006
|
|
||||||
070009020
|
|
||||||
000500107
|
|
||||||
804150000
|
|
||||||
000803000
|
|
||||||
000092805
|
|
||||||
907006000
|
|
||||||
030400010
|
|
||||||
200000600
|
|
@ -1,9 +0,0 @@
|
|||||||
040000050
|
|
||||||
001943600
|
|
||||||
009000300
|
|
||||||
600050002
|
|
||||||
103000506
|
|
||||||
800020007
|
|
||||||
005000200
|
|
||||||
002436700
|
|
||||||
030000040
|
|
@ -1,9 +0,0 @@
|
|||||||
004000000
|
|
||||||
000030002
|
|
||||||
390700080
|
|
||||||
400009001
|
|
||||||
209801307
|
|
||||||
600200008
|
|
||||||
010008053
|
|
||||||
900040000
|
|
||||||
000000800
|
|
@ -1,9 +0,0 @@
|
|||||||
360020089
|
|
||||||
000361000
|
|
||||||
000000000
|
|
||||||
803000602
|
|
||||||
400603007
|
|
||||||
607000108
|
|
||||||
000000000
|
|
||||||
000418000
|
|
||||||
970030014
|
|
@ -1,9 +0,0 @@
|
|||||||
500400060
|
|
||||||
009000800
|
|
||||||
640020000
|
|
||||||
000001008
|
|
||||||
208000501
|
|
||||||
700500000
|
|
||||||
000090084
|
|
||||||
003000600
|
|
||||||
060003002
|
|
@ -1,9 +0,0 @@
|
|||||||
007256400
|
|
||||||
400000005
|
|
||||||
010030060
|
|
||||||
000508000
|
|
||||||
008060200
|
|
||||||
000107000
|
|
||||||
030070090
|
|
||||||
200000004
|
|
||||||
006312700
|
|
@ -1,9 +0,0 @@
|
|||||||
000000000
|
|
||||||
079050180
|
|
||||||
800000007
|
|
||||||
007306800
|
|
||||||
450708096
|
|
||||||
003502700
|
|
||||||
700000005
|
|
||||||
016030420
|
|
||||||
000000000
|
|
@ -1,9 +0,0 @@
|
|||||||
030000080
|
|
||||||
009000500
|
|
||||||
007509200
|
|
||||||
700105008
|
|
||||||
020090030
|
|
||||||
900402001
|
|
||||||
004207100
|
|
||||||
002000800
|
|
||||||
070000090
|
|
@ -1,9 +0,0 @@
|
|||||||
200170603
|
|
||||||
050000100
|
|
||||||
000006079
|
|
||||||
000040700
|
|
||||||
000801000
|
|
||||||
009050000
|
|
||||||
310400000
|
|
||||||
005000060
|
|
||||||
906037002
|
|
@ -1,9 +0,0 @@
|
|||||||
000000080
|
|
||||||
800701040
|
|
||||||
040020030
|
|
||||||
374000900
|
|
||||||
000030000
|
|
||||||
005000321
|
|
||||||
010060050
|
|
||||||
050802006
|
|
||||||
080000000
|
|
@ -1,9 +0,0 @@
|
|||||||
000000085
|
|
||||||
000210009
|
|
||||||
960080100
|
|
||||||
500800016
|
|
||||||
000000000
|
|
||||||
890006007
|
|
||||||
009070052
|
|
||||||
300054000
|
|
||||||
480000000
|
|
@ -1,9 +0,0 @@
|
|||||||
608070502
|
|
||||||
050608070
|
|
||||||
002000300
|
|
||||||
500090006
|
|
||||||
040302050
|
|
||||||
800050003
|
|
||||||
005000200
|
|
||||||
010704090
|
|
||||||
409060701
|
|
@ -1,9 +0,0 @@
|
|||||||
050010040
|
|
||||||
107000602
|
|
||||||
000905000
|
|
||||||
208030501
|
|
||||||
040070020
|
|
||||||
901080406
|
|
||||||
000401000
|
|
||||||
304000709
|
|
||||||
020060010
|
|
@ -1,9 +0,0 @@
|
|||||||
053000790
|
|
||||||
009753400
|
|
||||||
100000002
|
|
||||||
090080010
|
|
||||||
000907000
|
|
||||||
080030070
|
|
||||||
500000003
|
|
||||||
007641200
|
|
||||||
061000940
|
|
@ -1,9 +0,0 @@
|
|||||||
006080300
|
|
||||||
049070250
|
|
||||||
000405000
|
|
||||||
600317004
|
|
||||||
007000800
|
|
||||||
100826009
|
|
||||||
000702000
|
|
||||||
075040190
|
|
||||||
003090600
|
|
@ -1,9 +0,0 @@
|
|||||||
005080700
|
|
||||||
700204005
|
|
||||||
320000084
|
|
||||||
060105040
|
|
||||||
008000500
|
|
||||||
070803010
|
|
||||||
450000091
|
|
||||||
600508007
|
|
||||||
003010600
|
|
@ -1,9 +0,0 @@
|
|||||||
000900800
|
|
||||||
128006400
|
|
||||||
070800060
|
|
||||||
800430007
|
|
||||||
500000009
|
|
||||||
600079008
|
|
||||||
090004010
|
|
||||||
003600284
|
|
||||||
001007000
|
|
@ -1,9 +0,0 @@
|
|||||||
000080000
|
|
||||||
270000054
|
|
||||||
095000810
|
|
||||||
009806400
|
|
||||||
020403060
|
|
||||||
006905100
|
|
||||||
017000620
|
|
||||||
460000038
|
|
||||||
000090000
|
|
@ -1,9 +0,0 @@
|
|||||||
000602000
|
|
||||||
400050001
|
|
||||||
085010620
|
|
||||||
038206710
|
|
||||||
000000000
|
|
||||||
019407350
|
|
||||||
026040530
|
|
||||||
900020007
|
|
||||||
000809000
|
|
@ -1,9 +0,0 @@
|
|||||||
000900002
|
|
||||||
050123400
|
|
||||||
030000160
|
|
||||||
908000000
|
|
||||||
070000090
|
|
||||||
000000205
|
|
||||||
091000050
|
|
||||||
007439020
|
|
||||||
400007000
|
|
@ -1,9 +0,0 @@
|
|||||||
380000000
|
|
||||||
000400785
|
|
||||||
009020300
|
|
||||||
060090000
|
|
||||||
800302009
|
|
||||||
000040070
|
|
||||||
001070500
|
|
||||||
495006000
|
|
||||||
000000092
|
|
@ -1,9 +0,0 @@
|
|||||||
000158000
|
|
||||||
002060800
|
|
||||||
030000040
|
|
||||||
027030510
|
|
||||||
000000000
|
|
||||||
046080790
|
|
||||||
050000080
|
|
||||||
004070100
|
|
||||||
000325000
|
|
@ -1,9 +0,0 @@
|
|||||||
010500200
|
|
||||||
900001000
|
|
||||||
002008030
|
|
||||||
500030007
|
|
||||||
008000500
|
|
||||||
600080004
|
|
||||||
040100700
|
|
||||||
000700006
|
|
||||||
003004050
|
|
@ -1,9 +0,0 @@
|
|||||||
080000040
|
|
||||||
000469000
|
|
||||||
400000007
|
|
||||||
005904600
|
|
||||||
070608030
|
|
||||||
008502100
|
|
||||||
900000005
|
|
||||||
000781000
|
|
||||||
060000010
|
|
@ -1,9 +0,0 @@
|
|||||||
904200007
|
|
||||||
010000000
|
|
||||||
000706500
|
|
||||||
000800090
|
|
||||||
020904060
|
|
||||||
040002000
|
|
||||||
001607000
|
|
||||||
000000030
|
|
||||||
300005702
|
|
@ -1,9 +0,0 @@
|
|||||||
000700800
|
|
||||||
006000031
|
|
||||||
040002000
|
|
||||||
024070000
|
|
||||||
010030080
|
|
||||||
000060290
|
|
||||||
000800070
|
|
||||||
860000500
|
|
||||||
002006000
|
|
@ -1,9 +0,0 @@
|
|||||||
001007090
|
|
||||||
590080001
|
|
||||||
030000080
|
|
||||||
000005800
|
|
||||||
050060020
|
|
||||||
004100000
|
|
||||||
080000030
|
|
||||||
100020079
|
|
||||||
020700400
|
|
@ -1,9 +0,0 @@
|
|||||||
000003017
|
|
||||||
015009008
|
|
||||||
060000000
|
|
||||||
100007000
|
|
||||||
009000200
|
|
||||||
000500004
|
|
||||||
000000020
|
|
||||||
500600340
|
|
||||||
340200000
|
|
@ -1,9 +0,0 @@
|
|||||||
300200000
|
|
||||||
000107000
|
|
||||||
706030500
|
|
||||||
070009080
|
|
||||||
900020004
|
|
||||||
010800050
|
|
||||||
009040301
|
|
||||||
000702000
|
|
||||||
000008006
|
|
@ -1,15 +1,21 @@
|
|||||||
#include <unity/unity.h>
|
#include <unity/unity.h>
|
||||||
#include <unity/unity_internals.h>
|
#include <unity/unity_internals.h>
|
||||||
#include "sudoku.hpp"
|
|
||||||
#include "test_list.hpp"
|
|
||||||
|
|
||||||
void setUp() { ; }
|
void setUp() { ; }
|
||||||
void tearDown() { ; }
|
void tearDown() { ; }
|
||||||
|
|
||||||
|
int Math(void) {
|
||||||
|
return 2+2;
|
||||||
|
}
|
||||||
|
|
||||||
|
void test_Math(void) {
|
||||||
|
TEST_ASSERT_EQUAL_INT(4, Math());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
UNITY_BEGIN();
|
UNITY_BEGIN();
|
||||||
RUN_TEST(test_SudokuEasy01);
|
RUN_TEST(test_Math);
|
||||||
return UNITY_END();
|
return UNITY_END();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,354 +0,0 @@
|
|||||||
#include "test_list.hpp"
|
|
||||||
#include <unity/unity.h>
|
|
||||||
#include <unity/unity_internals.h>
|
|
||||||
#include "sudoku.hpp"
|
|
||||||
|
|
||||||
void test_SudokuEasy01(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-01.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy02(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-02.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy03(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-03.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy04(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-04.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy05(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-05.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy06(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-06.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy07(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-07.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy08(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-08.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy09(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-09.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy10(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-10.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy11(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-11.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy12(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-12.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy13(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-13.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy14(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-14.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy15(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-15.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy16(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-16.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy17(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-17.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy18(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-18.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy19(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-19.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy20(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-20.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy21(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-21.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy22(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-22.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy23(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-23.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy24(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-24.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy25(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-25.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy26(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-26.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy27(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-27.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy28(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-28.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy29(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-29.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy30(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-30.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy31(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-31.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy32(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-32.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy33(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-33.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy34(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-34.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy35(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-35.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy36(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-36.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy37(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-37.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy38(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-38.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy39(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-39.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy40(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-40.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy41(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-41.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy42(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-42.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy43(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-43.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy44(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-44.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy45(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-45.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy46(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-46.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy47(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-47.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy48(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-48.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy49(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-49.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_SudokuEasy50(void) {
|
|
||||||
Sudoku testGame;
|
|
||||||
testGame.FillBoard("test/files/sudoku-easy-50.txt");
|
|
||||||
testGame.Solve();
|
|
||||||
TEST_ASSERT_TRUE(testGame.IsBoardSolved());
|
|
||||||
}
|
|
@ -1,55 +0,0 @@
|
|||||||
#ifndef TEST_LIST_HPP
|
|
||||||
#define TEST_LIST_HPP
|
|
||||||
|
|
||||||
void test_SudokuEasy01(void);
|
|
||||||
void test_SudokuEasy02(void);
|
|
||||||
void test_SudokuEasy03(void);
|
|
||||||
void test_SudokuEasy04(void);
|
|
||||||
void test_SudokuEasy05(void);
|
|
||||||
void test_SudokuEasy06(void);
|
|
||||||
void test_SudokuEasy07(void);
|
|
||||||
void test_SudokuEasy08(void);
|
|
||||||
void test_SudokuEasy09(void);
|
|
||||||
void test_SudokuEasy10(void);
|
|
||||||
void test_SudokuEasy11(void);
|
|
||||||
void test_SudokuEasy12(void);
|
|
||||||
void test_SudokuEasy13(void);
|
|
||||||
void test_SudokuEasy14(void);
|
|
||||||
void test_SudokuEasy15(void);
|
|
||||||
void test_SudokuEasy16(void);
|
|
||||||
void test_SudokuEasy17(void);
|
|
||||||
void test_SudokuEasy18(void);
|
|
||||||
void test_SudokuEasy19(void);
|
|
||||||
void test_SudokuEasy20(void);
|
|
||||||
void test_SudokuEasy21(void);
|
|
||||||
void test_SudokuEasy22(void);
|
|
||||||
void test_SudokuEasy23(void);
|
|
||||||
void test_SudokuEasy24(void);
|
|
||||||
void test_SudokuEasy25(void);
|
|
||||||
void test_SudokuEasy26(void);
|
|
||||||
void test_SudokuEasy27(void);
|
|
||||||
void test_SudokuEasy28(void);
|
|
||||||
void test_SudokuEasy29(void);
|
|
||||||
void test_SudokuEasy30(void);
|
|
||||||
void test_SudokuEasy31(void);
|
|
||||||
void test_SudokuEasy32(void);
|
|
||||||
void test_SudokuEasy33(void);
|
|
||||||
void test_SudokuEasy34(void);
|
|
||||||
void test_SudokuEasy35(void);
|
|
||||||
void test_SudokuEasy36(void);
|
|
||||||
void test_SudokuEasy37(void);
|
|
||||||
void test_SudokuEasy38(void);
|
|
||||||
void test_SudokuEasy39(void);
|
|
||||||
void test_SudokuEasy40(void);
|
|
||||||
void test_SudokuEasy41(void);
|
|
||||||
void test_SudokuEasy42(void);
|
|
||||||
void test_SudokuEasy43(void);
|
|
||||||
void test_SudokuEasy44(void);
|
|
||||||
void test_SudokuEasy45(void);
|
|
||||||
void test_SudokuEasy46(void);
|
|
||||||
void test_SudokuEasy47(void);
|
|
||||||
void test_SudokuEasy48(void);
|
|
||||||
void test_SudokuEasy49(void);
|
|
||||||
void test_SudokuEasy50(void);
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue
Block a user