generated from Trianta/cpp-unity-template
355 lines
9.0 KiB
C++
355 lines
9.0 KiB
C++
#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());
|
|
}
|