diff --git a/build/artifacts/release/project.out b/build/artifacts/release/project.out deleted file mode 100755 index 2b21304..0000000 Binary files a/build/artifacts/release/project.out and /dev/null differ diff --git a/build/release/cache/input.yml b/build/release/cache/input.yml deleted file mode 100644 index 1bace5f..0000000 --- a/build/release/cache/input.yml +++ /dev/null @@ -1,276 +0,0 @@ ---- -:project: - :use_exceptions: false - :use_mocks: true - :compile_threads: 1 - :test_threads: 1 - :use_test_preprocessor: true - :use_preprocessor_directives: false - :use_deep_dependencies: false - :generate_deep_dependencies: true - :auto_link_deep_dependencies: false - :test_file_prefix: test_ - :options_paths: [] - :release_build: true - :use_auxiliary_dependencies: true - :build_root: build - :which_ceedling: gem - :ceedling_version: 0.31.1 - :default_tasks: - - test:all -:release_build: - :use_assembly: false - :artifacts: [] -:paths: - :test: - - "+:test/**" - - "-:test/support" - :source: - - src/** - :support: - - test/support - :include: [] - :libraries: [] - :test_toolchain_include: [] - :release_toolchain_include: [] -:files: - :test: [] - :source: [] - :assembly: [] - :support: [] - :include: [] -:environment: -- :rake_columns: '120' -:defines: - :test: - - &1 [] - - TEST - :test_preprocess: - - *1 - - TEST - :release: [] - :release_preprocess: [] - :use_test_definition: false - :common: [] -:libraries: - :flag: "-l${1}" - :path_flag: "-L ${1}" - :test: [] - :test_preprocess: [] - :release: [] - :release_preprocess: [] - :placement: :end - :system: [] -:flags: {} -:extension: - :header: ".h" - :source: ".c" - :assembly: ".s" - :object: ".o" - :libraries: - - ".a" - - ".so" - :executable: ".out" - :map: ".map" - :list: ".lst" - :testpass: ".pass" - :testfail: ".fail" - :dependencies: ".d" -:unity: - :vendor_path: "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor" - :defines: [] -:cmock: - :vendor_path: "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor" - :defines: [] - :includes: [] - :mock_prefix: mock_ - :when_no_prototypes: :warn - :enforce_strict_ordering: true - :plugins: - - :ignore - - :callback - :treat_as: - uint8: HEX8 - uint16: HEX16 - uint32: UINT32 - int8: INT8 - bool: UINT8 - :mock_path: build/test/mocks - :verbosity: 3 - :unity_helper: false -:cexception: - :vendor_path: "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor" - :defines: [] -:test_runner: - :includes: [] - :file_suffix: _runner -:tools: - :test_compiler: - :executable: gcc - :name: default_test_compiler - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - '' - - '' - - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR - - -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE - - "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR - - "-DGNU_COMPILER" - - "-g" - - '' - - -c "${1}" - - -o "${2}" - - "-MMD" - - -MF "${4}" - :test_fixture: - :executable: "${1}" - :name: default_test_fixture - :stderr_redirect: :auto - :background_exec: :none - :optional: false - :arguments: [] - :test_linker: - :executable: gcc - :name: default_test_linker - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - '' - - '' - - '' - - '"${1}"' - - "${5}" - - -o "${2}" - - '' - - "${4}" - - '' - :test_file_preprocessor: - :executable: gcc - :name: default_test_file_preprocessor - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - '' - - '' - - "-E" - - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR - - -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE - - "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR - - "-D$": DEFINES_TEST_PREPROCESS - - "-DGNU_COMPILER" - - '"${1}"' - - -o "${2}" - :test_file_preprocessor_directives: - :executable: gcc - :name: default_test_file_preprocessor_directives - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - "-E" - - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR - - -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE - - "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR - - "-D$": DEFINES_TEST_PREPROCESS - - "-DGNU_COMPILER" - - "-fdirectives-only" - - '"${1}"' - - -o "${2}" - :test_includes_preprocessor: - :executable: gcc - :name: default_test_includes_preprocessor - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - '' - - '' - - "-E" - - "-MM" - - "-MG" - - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR - - -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE - - "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR - - "-D$": DEFINES_TEST_PREPROCESS - - "-DGNU_COMPILER" - - '"${1}"' - :release_compiler: - :executable: gcc - :name: default_release_compiler - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - '' - - '' - - -I"$": COLLECTION_PATHS_SOURCE_INCLUDE_VENDOR - - -I"$": COLLECTION_PATHS_RELEASE_TOOLCHAIN_INCLUDE - - "-D$": COLLECTION_DEFINES_RELEASE_AND_VENDOR - - "-DGNU_COMPILER" - - '' - - -c "${1}" - - -o "${2}" - - "-MMD" - - -MF "${4}" - :release_linker: - :executable: gcc - :name: default_release_linker - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - '' - - '' - - '' - - '"${1}"' - - "${5}" - - -o "${2}" - - '' - - "${4}" - - '' -:test_compiler: - :arguments: [] -:test_linker: - :arguments: [] -:test_fixture: - :arguments: [] - :link_objects: [] -:test_includes_preprocessor: - :arguments: [] -:test_file_preprocessor: - :arguments: [] -:test_file_preprocessor_directives: - :arguments: [] -:test_dependencies_generator: - :arguments: [] -:release_compiler: - :arguments: [] -:release_linker: - :arguments: [] -:release_assembler: - :arguments: [] -:release_dependencies_generator: - :arguments: [] -:plugins: - :load_paths: - - "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/lib/../plugins" - :enabled: - - stdout_pretty_tests_report - - module_generator - :display_raw_test_results: false - :stdout_pretty_tests_report_path: "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/lib/../plugins/stdout_pretty_tests_report" - :module_generator_path: "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/lib/../plugins/module_generator" -:gcov: - :reports: - - HtmlDetailed - :gcovr: - :html_medium_threshold: 75 - :html_high_threshold: 90 -:module_generator: - :project_root: "./" - :source_root: src/ - :test_root: test/ diff --git a/build/release/dependencies/Hallo_Welt.d b/build/release/dependencies/Hallo_Welt.d deleted file mode 100644 index dcb5427..0000000 --- a/build/release/dependencies/Hallo_Welt.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/Hallo_Welt.o: src/Hallo_Welt.c diff --git a/build/release/dependencies/add_student.d b/build/release/dependencies/add_student.d deleted file mode 100644 index 6c3a255..0000000 --- a/build/release/dependencies/add_student.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/add_student.o: src/main/c/add_student.c diff --git a/build/release/dependencies/add_subject.d b/build/release/dependencies/add_subject.d deleted file mode 100644 index 516203f..0000000 --- a/build/release/dependencies/add_subject.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/add_subject.o: src/main/c/add_subject.c diff --git a/build/release/dependencies/force_build b/build/release/dependencies/force_build deleted file mode 100644 index e69de29..0000000 diff --git a/build/release/dependencies/game100.d b/build/release/dependencies/game100.d deleted file mode 100644 index 24915ff..0000000 --- a/build/release/dependencies/game100.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/game100.o: src/main/c/Template/game100.c diff --git a/build/release/dependencies/get_character.d b/build/release/dependencies/get_character.d deleted file mode 100644 index ba996cf..0000000 --- a/build/release/dependencies/get_character.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/get_character.o: src/main/c/Snake/get_character.c diff --git a/build/release/dependencies/main.d b/build/release/dependencies/main.d deleted file mode 100644 index cab5c66..0000000 --- a/build/release/dependencies/main.d +++ /dev/null @@ -1,3 +0,0 @@ -build/release/out/c/main.o: src/main/c/main.c \ - src/main/c/Snake/snake_start.h \ - src/main/c/Minesweeper/minesweeper_start.h src/main/c/Pong/pong.h diff --git a/build/release/dependencies/minesweeper_start.d b/build/release/dependencies/minesweeper_start.d deleted file mode 100644 index 67807f6..0000000 --- a/build/release/dependencies/minesweeper_start.d +++ /dev/null @@ -1,3 +0,0 @@ -build/release/out/c/minesweeper_start.o: \ - src/main/c/Minesweeper/minesweeper_start.c \ - src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/release/dependencies/modify_student.d b/build/release/dependencies/modify_student.d deleted file mode 100644 index 6e486eb..0000000 --- a/build/release/dependencies/modify_student.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/modify_student.o: src/main/c/modify_student.c diff --git a/build/release/dependencies/modify_subject.d b/build/release/dependencies/modify_subject.d deleted file mode 100644 index 7ca395b..0000000 --- a/build/release/dependencies/modify_subject.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/modify_subject.o: src/main/c/modify_subject.c diff --git a/build/release/dependencies/pong.d b/build/release/dependencies/pong.d deleted file mode 100644 index 4a40a82..0000000 --- a/build/release/dependencies/pong.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/pong.o: src/main/c/Pong/pong.c diff --git a/build/release/dependencies/show_statistics.d b/build/release/dependencies/show_statistics.d deleted file mode 100644 index 7c283e6..0000000 --- a/build/release/dependencies/show_statistics.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/show_statistics.o: src/main/c/show_statistics.c diff --git a/build/release/dependencies/snake_start.d b/build/release/dependencies/snake_start.d deleted file mode 100644 index 974ab7a..0000000 --- a/build/release/dependencies/snake_start.d +++ /dev/null @@ -1,2 +0,0 @@ -build/release/out/c/snake_start.o: src/main/c/Snake/snake_start.c \ - src/main/c/Snake/snake_start.h src/main/c/Snake/get_character.h diff --git a/build/release/dependencies/testRunnerGenerator.d b/build/release/dependencies/testRunnerGenerator.d deleted file mode 100644 index 081b804..0000000 --- a/build/release/dependencies/testRunnerGenerator.d +++ /dev/null @@ -1,5 +0,0 @@ -build/release/out/c/testRunnerGenerator.o: \ - src/Unity/test/testdata/testRunnerGenerator.c \ - src/Unity/test/testdata/../../src/unity.h \ - src/Unity/test/testdata/../../src/unity_internals.h \ - src/Unity/test/testdata/Defs.h diff --git a/build/release/dependencies/testRunnerGeneratorSmall.d b/build/release/dependencies/testRunnerGeneratorSmall.d deleted file mode 100644 index 44e26e5..0000000 --- a/build/release/dependencies/testRunnerGeneratorSmall.d +++ /dev/null @@ -1,3 +0,0 @@ -build/release/out/c/testRunnerGeneratorSmall.o: \ - src/Unity/test/testdata/testRunnerGeneratorSmall.c src/Unity/src/unity.h \ - src/Unity/src/unity_internals.h src/Unity/test/testdata/Defs.h diff --git a/build/release/dependencies/testRunnerGeneratorWithMocks.d b/build/release/dependencies/testRunnerGeneratorWithMocks.d deleted file mode 100644 index 2fad802..0000000 --- a/build/release/dependencies/testRunnerGeneratorWithMocks.d +++ /dev/null @@ -1,5 +0,0 @@ -build/release/out/c/testRunnerGeneratorWithMocks.o: \ - src/Unity/test/testdata/testRunnerGeneratorWithMocks.c \ - src/Unity/test/testdata/../../src/unity.h \ - src/Unity/test/testdata/../../src/unity_internals.h \ - src/Unity/test/testdata/Defs.h src/Unity/test/testdata/mockMock.h diff --git a/build/release/dependencies/testsample_cmd.d b/build/release/dependencies/testsample_cmd.d deleted file mode 100644 index a7578ff..0000000 --- a/build/release/dependencies/testsample_cmd.d +++ /dev/null @@ -1,5 +0,0 @@ -build/release/out/c/testsample_cmd.o: \ - src/Unity/test/expectdata/testsample_cmd.c \ - src/Unity/test/expectdata/../../src/unity.h \ - src/Unity/test/expectdata/../../src/unity_internals.h \ - src/Unity/test/testdata/CException.h diff --git a/build/release/dependencies/tictactoe.d b/build/release/dependencies/tictactoe.d deleted file mode 100644 index 3bd3806..0000000 --- a/build/release/dependencies/tictactoe.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/tictactoe.o: src/main/c/GameTic_Tac_Toe/tictactoe.c diff --git a/build/release/dependencies/top.d b/build/release/dependencies/top.d deleted file mode 100644 index 02e77a3..0000000 --- a/build/release/dependencies/top.d +++ /dev/null @@ -1 +0,0 @@ -build/release/out/c/top.o: src/main/c/Quiz/top.c diff --git a/build/release/out/c/Hallo_Welt.o b/build/release/out/c/Hallo_Welt.o deleted file mode 100644 index f56ef23..0000000 Binary files a/build/release/out/c/Hallo_Welt.o and /dev/null differ diff --git a/build/release/out/c/add_student.o b/build/release/out/c/add_student.o deleted file mode 100644 index 7bd9ffe..0000000 Binary files a/build/release/out/c/add_student.o and /dev/null differ diff --git a/build/release/out/c/add_subject.o b/build/release/out/c/add_subject.o deleted file mode 100644 index c22adb9..0000000 Binary files a/build/release/out/c/add_subject.o and /dev/null differ diff --git a/build/release/out/c/game100.o b/build/release/out/c/game100.o deleted file mode 100644 index 96df510..0000000 Binary files a/build/release/out/c/game100.o and /dev/null differ diff --git a/build/release/out/c/get_character.o b/build/release/out/c/get_character.o deleted file mode 100644 index 570722e..0000000 Binary files a/build/release/out/c/get_character.o and /dev/null differ diff --git a/build/release/out/c/main.o b/build/release/out/c/main.o deleted file mode 100644 index 17adbcd..0000000 Binary files a/build/release/out/c/main.o and /dev/null differ diff --git a/build/release/out/c/minesweeper_start.o b/build/release/out/c/minesweeper_start.o deleted file mode 100644 index 0218308..0000000 Binary files a/build/release/out/c/minesweeper_start.o and /dev/null differ diff --git a/build/release/out/c/modify_student.o b/build/release/out/c/modify_student.o deleted file mode 100644 index 651f919..0000000 Binary files a/build/release/out/c/modify_student.o and /dev/null differ diff --git a/build/release/out/c/modify_subject.o b/build/release/out/c/modify_subject.o deleted file mode 100644 index 1558c3e..0000000 Binary files a/build/release/out/c/modify_subject.o and /dev/null differ diff --git a/build/release/out/c/pong.o b/build/release/out/c/pong.o deleted file mode 100644 index 6cbb7e4..0000000 Binary files a/build/release/out/c/pong.o and /dev/null differ diff --git a/build/release/out/c/show_statistics.o b/build/release/out/c/show_statistics.o deleted file mode 100644 index ac9af01..0000000 Binary files a/build/release/out/c/show_statistics.o and /dev/null differ diff --git a/build/release/out/c/snake_start.o b/build/release/out/c/snake_start.o deleted file mode 100644 index de4954f..0000000 Binary files a/build/release/out/c/snake_start.o and /dev/null differ diff --git a/build/release/out/c/testRunnerGenerator.o b/build/release/out/c/testRunnerGenerator.o deleted file mode 100644 index 97013f1..0000000 Binary files a/build/release/out/c/testRunnerGenerator.o and /dev/null differ diff --git a/build/release/out/c/testRunnerGeneratorSmall.o b/build/release/out/c/testRunnerGeneratorSmall.o deleted file mode 100644 index af61e66..0000000 Binary files a/build/release/out/c/testRunnerGeneratorSmall.o and /dev/null differ diff --git a/build/release/out/c/testRunnerGeneratorWithMocks.o b/build/release/out/c/testRunnerGeneratorWithMocks.o deleted file mode 100644 index f3bc56b..0000000 Binary files a/build/release/out/c/testRunnerGeneratorWithMocks.o and /dev/null differ diff --git a/build/release/out/c/testsample_cmd.o b/build/release/out/c/testsample_cmd.o deleted file mode 100644 index 29949ea..0000000 Binary files a/build/release/out/c/testsample_cmd.o and /dev/null differ diff --git a/build/release/out/c/tictactoe.o b/build/release/out/c/tictactoe.o deleted file mode 100644 index 39f5d21..0000000 Binary files a/build/release/out/c/tictactoe.o and /dev/null differ diff --git a/build/release/out/c/top.o b/build/release/out/c/top.o deleted file mode 100644 index 2c44dbf..0000000 Binary files a/build/release/out/c/top.o and /dev/null differ diff --git a/build/test/cache/defines_dependency.yml b/build/test/cache/defines_dependency.yml index d0eaec9..ec28db2 100644 --- a/build/test/cache/defines_dependency.yml +++ b/build/test/cache/defines_dependency.yml @@ -1,17 +1,3 @@ --- -src/main/c/Template/game100.c: -- TEST -<<<<<<< HEAD src/main/c/Calculator/calculator.c: -======= -src/main/c/Snake/snake_start.c: -- TEST -src/main/c/Snake/get_character.c: -- TEST -src/main/c/Minesweeper/minesweeper_start.c: -- TEST -src/main/c/GameTic_Tac_Toe/tictactoe.c: -- TEST -src/main/c/Pong/pong.c: ->>>>>>> 2acead7a056f156a3c7129d740f7d5585fbc805f - TEST diff --git a/build/test/cache/test_add.c b/build/test/cache/test_add.c deleted file mode 100644 index fe4db9b..0000000 --- a/build/test/cache/test_add.c +++ /dev/null @@ -1,79 +0,0 @@ -#include "build/temp/../../src/main/c/Calculator/calculator.h" -#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){ - - - -} - -void tearDown(void){ - -} - - - - - -void test_pow_N_N(void){ - - - - double result; - - double b = 3; - - double a = 3; - - - - - - result = pow(a, b); - - - - - - UnityAssertEqualNumber((UNITY_INT)((27)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(23), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_pow_Z_N(void){ - - - - double result; - - double b = 3; - - double a = -3; - - - - - - result = pow(a, b); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-27)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(36), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_bomb_in_array.c b/build/test/cache/test_bomb_in_array.c deleted file mode 100644 index 14de752..0000000 --- a/build/test/cache/test_bomb_in_array.c +++ /dev/null @@ -1,79 +0,0 @@ -#include "build/temp/../../src/main/c/Minesweeper/minesweeper_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_bomb_in_array(void){ - - - - - - _Bool - - result; - - int array[] = {5, 9, 42, 6, 87, 95, 202, 13, 45 ,78}; - - int bomb = 42; - - int length = 10; - - - - - - result = array_contains_value(array, bomb, length); - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(22)));}} while(0); - -} - - - - - -void test_bomb_not_in_array(void){ - - - - - - _Bool - - result; - - int array[] = {5, 9, 42, 6, 87, 95, 202, 13, 45 ,78}; - - int bomb = 0; - - int length = 10; - - - - - - result = array_contains_value(array, bomb, length); - - - - - - do {if (!(result)) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(37)));}} while(0); - -} diff --git a/build/test/cache/test_checkCollision.c b/build/test/cache/test_checkCollision.c deleted file mode 100644 index 79e7083..0000000 --- a/build/test/cache/test_checkCollision.c +++ /dev/null @@ -1,143 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -typedef struct { - - int x; - - int y; - - int speedX; - - int speedY; - -} Ball; - - - -typedef struct { - - int x; - - int y; - - int width; - - int height; - -} Paddle; - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_checkCollision(void){ - - Ball ball = {10, 10, 1, 1}; - - Paddle paddle = {50, 10, 5, 10}; - - - - - - ball.x = 0; - - int result1 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result1)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - - - - ball.x = 40 - 1; - - int result2 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result2)), ( - - ((void *)0) - - ), (UNITY_UINT)(39), UNITY_DISPLAY_STYLE_INT); - - - - - - ball.x = 5; - - ball.y = 0; - - int result3 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result3)), ( - - ((void *)0) - - ), (UNITY_UINT)(45), UNITY_DISPLAY_STYLE_INT); - - - - ball.y = 20 - 1; - - int result4 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result4)), ( - - ((void *)0) - - ), (UNITY_UINT)(49), UNITY_DISPLAY_STYLE_INT); - - - - - - ball.x = paddle.x - 1; - - ball.y = paddle.y + 1; - - int result5 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result5)), ( - - ((void *)0) - - ), (UNITY_UINT)(55), UNITY_DISPLAY_STYLE_INT); - - - - ball.x = paddle.x + 1; - - ball.y = paddle.y + 1; - - int result6 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result6)), ( - - ((void *)0) - - ), (UNITY_UINT)(60), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_checkGameEnd.c b/build/test/cache/test_checkGameEnd.c deleted file mode 100644 index 3c0d662..0000000 --- a/build/test/cache/test_checkGameEnd.c +++ /dev/null @@ -1,69 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_checkGameEnd(void){ - - - - int maxScore = 5; - - int score1 = 4, score2 = 2; - - - - - - int result = checkGameEnd(score1, score2, maxScore); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(23), UNITY_DISPLAY_STYLE_INT); - - - - - - score1 = 5; - - result = checkGameEnd(score1, score2, maxScore); - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(28), UNITY_DISPLAY_STYLE_INT); - - - - - - - -} diff --git a/build/test/cache/test_clearScreen.c b/build/test/cache/test_clearScreen.c deleted file mode 100644 index 74ec6bf..0000000 --- a/build/test/cache/test_clearScreen.c +++ /dev/null @@ -1,73 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - - - -char screen[20][40 +1]; - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_clearScreen(void){ - - - - int i, j; - - for (i = 0; i < 20; i++) { - - for (j = 0; j < 40; j++) { - - screen[i][j] = ' '; - - } - - screen[i][j] = '\0'; - - } - - - - - - clearScreen(); - - - - - - for (i = 0; i < 20; i++) { - - for (j = 0; j < 40; j++) { - - UnityAssertEqualNumber((UNITY_INT)((' ')), (UNITY_INT)((screen[i][j])), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - - } - - } - -} diff --git a/build/test/cache/test_collision.c b/build/test/cache/test_collision.c deleted file mode 100644 index a159403..0000000 --- a/build/test/cache/test_collision.c +++ /dev/null @@ -1,102 +0,0 @@ -#include "src/main/c/Snake/get_character.h" -#include "src/main/c/Snake/snake_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_self_collision(void){ - - - - - - _Bool - - result; - - Snake snake = {1, 5, {6 + 16 * 6, 6 + 16 * 7, 7 + 16 * 7, 7 + 16 * 6, 6 + 16 * 6}}; - - - - - - result = check_if_dead(&snake); - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(21)));}} while(0); - -} - - - - - -void test_no_collision(void){ - - - - - - _Bool - - result; - - Snake snake = initialize_snake(); - - - - - - result = check_if_dead(&snake); - - - - - - do {if (!(result)) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(34)));}} while(0); - -} - - - - - -void test_wall_collision(void){ - - - - - - _Bool - - result; - - Snake snake = {-1, 4, {0 + 16 * 6, 1 + 16 * 6, 2 + 16 * 6, 3 + 16 * 6}}; - - - - - - result = check_if_dead(&snake); - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(47)));}} while(0); - -} diff --git a/build/test/cache/test_is_Valid_tile.c b/build/test/cache/test_is_Valid_tile.c deleted file mode 100644 index 5911aa4..0000000 --- a/build/test/cache/test_is_Valid_tile.c +++ /dev/null @@ -1,269 +0,0 @@ -#include "build/temp/../../src/main/c/Minesweeper/minesweeper_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_detect_not_valid_tile_left(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 2; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_not_valid_tile_up(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 3; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_not_valid_tile_right(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 5; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(49), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_not_valid_tile_down(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 4; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(63), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_left(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 2; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((board.width * board.height - 2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(77), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_up(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 3; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((board.width * (board.height - 1) - 1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(91), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_right(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 5; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(105), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_down(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 4; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0 + board.width)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(119), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_moving_snake.c b/build/test/cache/test_moving_snake.c deleted file mode 100644 index b305c52..0000000 --- a/build/test/cache/test_moving_snake.c +++ /dev/null @@ -1,142 +0,0 @@ -#include "build/temp/../../src/main/c/Snake/get_character.h" -#include "build/temp/../../src/main/c/Snake/snake_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_moving_right(void){ - - - - - - _Bool - - result; - - Snake snake = {1, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {1, 3, {9 + 16 * 6, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(24)));}} while(0); - -} - - - -void test_moving_down(void){ - - - - - - _Bool - - result; - - Snake snake = {16, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {16, 3, {8 + 16 * 7, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(38)));}} while(0); - -} - - - -void test_moving_left(void){ - - - - - - _Bool - - result; - - Snake snake = {-1, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {-1, 3, {7 + 16 * 6, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(52)));}} while(0); - -} - - - -void test_moving_up(void){ - - - - - - _Bool - - result; - - Snake snake = {-16, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {-16, 3, {8 + 16 * 5, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(66)));}} while(0); - -} diff --git a/build/test/cache/test_number_of_bombs.c b/build/test/cache/test_number_of_bombs.c deleted file mode 100644 index 9b1981f..0000000 --- a/build/test/cache/test_number_of_bombs.c +++ /dev/null @@ -1,205 +0,0 @@ -#include "build/temp/../../src/main/c/Minesweeper/minesweeper_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_no_bombs_placed_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0 + board.width * 1; - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_searching_for_bombs_on_correct_tiles(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0 + board.width * 1; - - board.bombs[0] = 0 + board.width * 3; - - board.bombs[1] = 2 + board.width * 1; - - board.bombs[2] = board.width - 1 + board.width * 1; - - board.bombs[3] = 0 + board.width * (board.height - 1); - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(38), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_2_bombs_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0 + board.width * 1; - - board.bombs[0] = 0 + board.width * 2; - - board.bombs[1] = 1 + board.width * 1; - - board.bombs[2] = board.width - 1 + board.width * 1; - - board.bombs[3] = 0 + board.width * (board.height - 1); - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(55), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_5_bombs_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 1 + board.width * 0; - - board.bombs[0] = 0 + board.width * 0; - - board.bombs[1] = 2 + board.width * 0; - - board.bombs[2] = 0 + board.width * 1; - - board.bombs[3] = 1 + board.width * 1; - - board.bombs[4] = 2 + board.width * 1; - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((5)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(73), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_8_bombs_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 7 + board.width * 7; - - board.bombs[0] = 6 + board.width * 6; - - board.bombs[1] = 7 + board.width * 6; - - board.bombs[2] = 8 + board.width * 6; - - board.bombs[3] = 6 + board.width * 7; - - board.bombs[4] = 8 + board.width * 7; - - board.bombs[5] = 6 + board.width * 8; - - board.bombs[6] = 7 + board.width * 8; - - board.bombs[7] = 8 + board.width * 8; - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((8)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(94), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_part_of_snake.c b/build/test/cache/test_part_of_snake.c deleted file mode 100644 index b488cb0..0000000 --- a/build/test/cache/test_part_of_snake.c +++ /dev/null @@ -1,102 +0,0 @@ -#include "build/temp/../../src/main/c/Snake/get_character.h" -#include "build/temp/../../src/main/c/Snake/snake_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_find_head(void){ - - - - int result; - - Snake snake = initialize_snake(); - - - - - - result = part_of_snake(&snake, 8 * 16 + 8); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(20), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_get_correct_index(void){ - - - - int result; - - Snake snake = initialize_snake(); - - - - - - result = part_of_snake(&snake, 8 * 16 + 6); - - - - - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_snake_not_on_tile(void){ - - - - int result; - - Snake snake = initialize_snake(); - - - - - - result = part_of_snake(&snake, 6 * 16 + 6); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(46), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_playerInputMovement.c b/build/test/cache/test_playerInputMovement.c deleted file mode 100644 index d38ca76..0000000 --- a/build/test/cache/test_playerInputMovement.c +++ /dev/null @@ -1,83 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - -typedef struct { - - int x; - - int y; - - int speedX; - - int speedY; - -} Paddle; - - - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_playerInputMovement(void){ - - - - int paddlePositionY = 10; - - int userInput = -1; - - int expectedY = paddlePositionY - 1; - - - - processPlayerInput(&paddlePositionY, userInput); - - UnityAssertEqualNumber((UNITY_INT)((expectedY)), (UNITY_INT)((paddlePositionY)), ( - - ((void *)0) - - ), (UNITY_UINT)(27), UNITY_DISPLAY_STYLE_INT); - - - - - - userInput = 1; - - expectedY = paddlePositionY + 1; - - - - - - processPlayerInput(&paddlePositionY, userInput); - - UnityAssertEqualNumber((UNITY_INT)((expectedY)), (UNITY_INT)((paddlePositionY)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - - - - - - - -} diff --git a/build/test/cache/test_pong.c b/build/test/cache/test_pong.c deleted file mode 100644 index 7e1dfbf..0000000 --- a/build/test/cache/test_pong.c +++ /dev/null @@ -1,51 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){ - - - -} - -void tearDown(void){ - -} - - - - - -void test_input_all_5(void){ - - - - int a = 4, b = 5; - - - - - - resetScore( &a, &b ); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((a)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((b)), ( - - ((void *)0) - - ), (UNITY_UINT)(22), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_template.c b/build/test/cache/test_template.c deleted file mode 100644 index 0380b7b..0000000 --- a/build/test/cache/test_template.c +++ /dev/null @@ -1,73 +0,0 @@ -#include "src/main/c/Template/game100.h" -#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){ - - - -} - -void tearDown(void){ - -} - - - - - -void test_input_all_5(void){ - - - - int result; - - - - - - result = some_function(5, 5); - - - - - - UnityAssertEqualNumber((UNITY_INT)((6)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_ignore_rest_from_division(void){ - - - - int result; - - - - - - result = some_function(5, 6); - - - - - - UnityAssertEqualNumber((UNITY_INT)((5)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_tictactoe.c b/build/test/cache/test_tictactoe.c deleted file mode 100644 index e69de29..0000000 diff --git a/build/test/dependencies/cmock.d b/build/test/dependencies/cmock.d index 82b64c9..7d1cf5d 100644 --- a/build/test/dependencies/cmock.d +++ b/build/test/dependencies/cmock.d @@ -1,6 +1,6 @@ build/test/out/c/cmock.o: \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock_internals.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.c \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock_internals.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/force_build b/build/test/dependencies/force_build deleted file mode 100644 index e69de29..0000000 diff --git a/build/test/dependencies/game100.d b/build/test/dependencies/game100.d deleted file mode 100644 index e3fe8d5..0000000 --- a/build/test/dependencies/game100.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/game100.o: src/main/c/Template/game100.c diff --git a/build/test/dependencies/get_character.d b/build/test/dependencies/get_character.d deleted file mode 100644 index 8f17ec7..0000000 --- a/build/test/dependencies/get_character.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/get_character.o: src/main/c/Snake/get_character.c diff --git a/build/test/dependencies/minesweeper_start.d b/build/test/dependencies/minesweeper_start.d deleted file mode 100644 index fd6546c..0000000 --- a/build/test/dependencies/minesweeper_start.d +++ /dev/null @@ -1,3 +0,0 @@ -build/test/out/c/minesweeper_start.o: \ - src/main/c/Minesweeper/minesweeper_start.c \ - src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/test/dependencies/pong.d b/build/test/dependencies/pong.d deleted file mode 100644 index 9bafeb3..0000000 --- a/build/test/dependencies/pong.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/pong.o: src/main/c/Pong/pong.c diff --git a/build/test/dependencies/snake_start.d b/build/test/dependencies/snake_start.d deleted file mode 100644 index 6c435ce..0000000 --- a/build/test/dependencies/snake_start.d +++ /dev/null @@ -1,2 +0,0 @@ -build/test/out/c/snake_start.o: src/main/c/Snake/snake_start.c \ - src/main/c/Snake/snake_start.h src/main/c/Snake/get_character.h diff --git a/build/test/dependencies/test_add.d b/build/test/dependencies/test_add.d deleted file mode 100644 index 2d698f4..0000000 --- a/build/test/dependencies/test_add.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_add.o: test/Calculator/test_add.c \ - /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - test/Calculator/../../src/main/c/Calculator/calculator.h diff --git a/build/test/dependencies/test_add_runner.d b/build/test/dependencies/test_add_runner.d deleted file mode 100644 index e3f0886..0000000 --- a/build/test/dependencies/test_add_runner.d +++ /dev/null @@ -1,3 +0,0 @@ -build/test/out/c/test_add_runner.o: build/test/runners/test_add_runner.c \ - /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_bomb_in_array.d b/build/test/dependencies/test_bomb_in_array.d deleted file mode 100644 index 994afc1..0000000 --- a/build/test/dependencies/test_bomb_in_array.d +++ /dev/null @@ -1,5 +0,0 @@ -build/test/out/c/test_bomb_in_array.o: \ - test/Minesweeper/test_bomb_in_array.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - test/Minesweeper/../../src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/test/dependencies/test_bomb_in_array_runner.d b/build/test/dependencies/test_bomb_in_array_runner.d deleted file mode 100644 index 53b6683..0000000 --- a/build/test/dependencies/test_bomb_in_array_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_bomb_in_array_runner.o: \ - build/test/runners/test_bomb_in_array_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_checkCollision.d b/build/test/dependencies/test_checkCollision.d deleted file mode 100644 index 598f40e..0000000 --- a/build/test/dependencies/test_checkCollision.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_checkCollision.o: test/Pong/test_checkCollision.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/main/c/Pong/pong.h diff --git a/build/test/dependencies/test_checkCollision_runner.d b/build/test/dependencies/test_checkCollision_runner.d deleted file mode 100644 index 8caa0f9..0000000 --- a/build/test/dependencies/test_checkCollision_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_checkCollision_runner.o: \ - build/test/runners/test_checkCollision_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_checkGameEnd.d b/build/test/dependencies/test_checkGameEnd.d deleted file mode 100644 index 0d4bf78..0000000 --- a/build/test/dependencies/test_checkGameEnd.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_checkGameEnd.o: test/Pong/test_checkGameEnd.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/main/c/Pong/pong.h diff --git a/build/test/dependencies/test_checkGameEnd_runner.d b/build/test/dependencies/test_checkGameEnd_runner.d deleted file mode 100644 index 74bebf4..0000000 --- a/build/test/dependencies/test_checkGameEnd_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_checkGameEnd_runner.o: \ - build/test/runners/test_checkGameEnd_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_clearScreen.d b/build/test/dependencies/test_clearScreen.d deleted file mode 100644 index 7f5431c..0000000 --- a/build/test/dependencies/test_clearScreen.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_clearScreen.o: test/Pong/test_clearScreen.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/main/c/Pong/pong.h diff --git a/build/test/dependencies/test_clearScreen_runner.d b/build/test/dependencies/test_clearScreen_runner.d deleted file mode 100644 index 0f74b3c..0000000 --- a/build/test/dependencies/test_clearScreen_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_clearScreen_runner.o: \ - build/test/runners/test_clearScreen_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_collision.d b/build/test/dependencies/test_collision.d deleted file mode 100644 index ad5e8d5..0000000 --- a/build/test/dependencies/test_collision.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_collision.o: test/Snake/test_collision.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/main/c/Snake/snake_start.h src/main/c/Snake/get_character.h diff --git a/build/test/dependencies/test_collision_runner.d b/build/test/dependencies/test_collision_runner.d deleted file mode 100644 index 279686d..0000000 --- a/build/test/dependencies/test_collision_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_collision_runner.o: \ - build/test/runners/test_collision_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_is_Valid_tile.d b/build/test/dependencies/test_is_Valid_tile.d deleted file mode 100644 index 3c1a8bf..0000000 --- a/build/test/dependencies/test_is_Valid_tile.d +++ /dev/null @@ -1,5 +0,0 @@ -build/test/out/c/test_is_Valid_tile.o: \ - test/Minesweeper/test_is_Valid_tile.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - test/Minesweeper/../../src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/test/dependencies/test_is_Valid_tile_runner.d b/build/test/dependencies/test_is_Valid_tile_runner.d deleted file mode 100644 index fbecf92..0000000 --- a/build/test/dependencies/test_is_Valid_tile_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_is_Valid_tile_runner.o: \ - build/test/runners/test_is_Valid_tile_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_moving_snake.d b/build/test/dependencies/test_moving_snake.d deleted file mode 100644 index 0b892ff..0000000 --- a/build/test/dependencies/test_moving_snake.d +++ /dev/null @@ -1,5 +0,0 @@ -build/test/out/c/test_moving_snake.o: test/Snake/test_moving_snake.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - test/Snake/../../src/main/c/Snake/snake_start.h \ - test/Snake/../../src/main/c/Snake/get_character.h diff --git a/build/test/dependencies/test_moving_snake_runner.d b/build/test/dependencies/test_moving_snake_runner.d deleted file mode 100644 index ce8f9f0..0000000 --- a/build/test/dependencies/test_moving_snake_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_moving_snake_runner.o: \ - build/test/runners/test_moving_snake_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_number_of_bombs.d b/build/test/dependencies/test_number_of_bombs.d deleted file mode 100644 index f46f914..0000000 --- a/build/test/dependencies/test_number_of_bombs.d +++ /dev/null @@ -1,5 +0,0 @@ -build/test/out/c/test_number_of_bombs.o: \ - test/Minesweeper/test_number_of_bombs.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - test/Minesweeper/../../src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/test/dependencies/test_number_of_bombs_runner.d b/build/test/dependencies/test_number_of_bombs_runner.d deleted file mode 100644 index d910d9b..0000000 --- a/build/test/dependencies/test_number_of_bombs_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_number_of_bombs_runner.o: \ - build/test/runners/test_number_of_bombs_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_part_of_snake.d b/build/test/dependencies/test_part_of_snake.d deleted file mode 100644 index 6dec8fd..0000000 --- a/build/test/dependencies/test_part_of_snake.d +++ /dev/null @@ -1,5 +0,0 @@ -build/test/out/c/test_part_of_snake.o: test/Snake/test_part_of_snake.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - test/Snake/../../src/main/c/Snake/snake_start.h \ - test/Snake/../../src/main/c/Snake/get_character.h diff --git a/build/test/dependencies/test_part_of_snake_runner.d b/build/test/dependencies/test_part_of_snake_runner.d deleted file mode 100644 index 3f37e86..0000000 --- a/build/test/dependencies/test_part_of_snake_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_part_of_snake_runner.o: \ - build/test/runners/test_part_of_snake_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_playerInputMovement.d b/build/test/dependencies/test_playerInputMovement.d deleted file mode 100644 index a22d018..0000000 --- a/build/test/dependencies/test_playerInputMovement.d +++ /dev/null @@ -1,5 +0,0 @@ -build/test/out/c/test_playerInputMovement.o: \ - test/Pong/test_playerInputMovement.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/main/c/Pong/pong.h diff --git a/build/test/dependencies/test_playerInputMovement_runner.d b/build/test/dependencies/test_playerInputMovement_runner.d deleted file mode 100644 index c2f9cb9..0000000 --- a/build/test/dependencies/test_playerInputMovement_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_playerInputMovement_runner.o: \ - build/test/runners/test_playerInputMovement_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_pong.d b/build/test/dependencies/test_pong.d deleted file mode 100644 index de38849..0000000 --- a/build/test/dependencies/test_pong.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_pong.o: test/Pong/test_pong.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/main/c/Pong/pong.h diff --git a/build/test/dependencies/test_pong_runner.d b/build/test/dependencies/test_pong_runner.d deleted file mode 100644 index ae30bd9..0000000 --- a/build/test/dependencies/test_pong_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_pong_runner.o: \ - build/test/runners/test_pong_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_template.d b/build/test/dependencies/test_template.d deleted file mode 100644 index a0df7d1..0000000 --- a/build/test/dependencies/test_template.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_template.o: test/test_template.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/main/c/Template/game100.h diff --git a/build/test/dependencies/test_template_runner.d b/build/test/dependencies/test_template_runner.d deleted file mode 100644 index 8073f33..0000000 --- a/build/test/dependencies/test_template_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_template_runner.o: \ - build/test/runners/test_template_runner.c \ - /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_tictactoe.d b/build/test/dependencies/test_tictactoe.d deleted file mode 100644 index f4ff40e..0000000 --- a/build/test/dependencies/test_tictactoe.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/test_tictactoe.o: test/test_tictactoe.c diff --git a/build/test/dependencies/test_tictactoe_runner.d b/build/test/dependencies/test_tictactoe_runner.d deleted file mode 100644 index fa84889..0000000 --- a/build/test/dependencies/test_tictactoe_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_tictactoe_runner.o: \ - build/test/runners/test_tictactoe_runner.c \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - /var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/unity.d b/build/test/dependencies/unity.d index 770a033..e42504d 100644 --- a/build/test/dependencies/unity.d +++ b/build/test/dependencies/unity.d @@ -1,2 +1,4 @@ -build/test/out/c/unity.o: src/Unity/src/unity.c src/Unity/src/unity.h \ - src/Unity/src/unity_internals.h +build/test/out/c/unity.o: \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.c \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/out/c/cmock.o b/build/test/out/c/cmock.o index 93e6055..d47ec8e 100644 Binary files a/build/test/out/c/cmock.o and b/build/test/out/c/cmock.o differ diff --git a/build/test/out/c/game100.o b/build/test/out/c/game100.o deleted file mode 100644 index 5a781d8..0000000 Binary files a/build/test/out/c/game100.o and /dev/null differ diff --git a/build/test/out/c/get_character.o b/build/test/out/c/get_character.o deleted file mode 100644 index 1b8ddf9..0000000 Binary files a/build/test/out/c/get_character.o and /dev/null differ diff --git a/build/test/out/c/minesweeper_start.o b/build/test/out/c/minesweeper_start.o deleted file mode 100644 index 10c6f27..0000000 Binary files a/build/test/out/c/minesweeper_start.o and /dev/null differ diff --git a/build/test/out/c/pong.o b/build/test/out/c/pong.o deleted file mode 100644 index 7ed8663..0000000 Binary files a/build/test/out/c/pong.o and /dev/null differ diff --git a/build/test/out/c/snake_start.o b/build/test/out/c/snake_start.o deleted file mode 100644 index cba1813..0000000 Binary files a/build/test/out/c/snake_start.o and /dev/null differ diff --git a/build/test/out/c/test_add.o b/build/test/out/c/test_add.o deleted file mode 100644 index 463b836..0000000 Binary files a/build/test/out/c/test_add.o and /dev/null differ diff --git a/build/test/out/c/test_add_runner.o b/build/test/out/c/test_add_runner.o deleted file mode 100644 index 2d20162..0000000 Binary files a/build/test/out/c/test_add_runner.o and /dev/null differ diff --git a/build/test/out/c/test_bomb_in_array.o b/build/test/out/c/test_bomb_in_array.o deleted file mode 100644 index 651d6c6..0000000 Binary files a/build/test/out/c/test_bomb_in_array.o and /dev/null differ diff --git a/build/test/out/c/test_bomb_in_array_runner.o b/build/test/out/c/test_bomb_in_array_runner.o deleted file mode 100644 index 1d1a534..0000000 Binary files a/build/test/out/c/test_bomb_in_array_runner.o and /dev/null differ diff --git a/build/test/out/c/test_checkCollision.o b/build/test/out/c/test_checkCollision.o deleted file mode 100644 index dd26e7b..0000000 Binary files a/build/test/out/c/test_checkCollision.o and /dev/null differ diff --git a/build/test/out/c/test_checkCollision_runner.o b/build/test/out/c/test_checkCollision_runner.o deleted file mode 100644 index 747c52e..0000000 Binary files a/build/test/out/c/test_checkCollision_runner.o and /dev/null differ diff --git a/build/test/out/c/test_checkGameEnd.o b/build/test/out/c/test_checkGameEnd.o deleted file mode 100644 index 1a23238..0000000 Binary files a/build/test/out/c/test_checkGameEnd.o and /dev/null differ diff --git a/build/test/out/c/test_checkGameEnd_runner.o b/build/test/out/c/test_checkGameEnd_runner.o deleted file mode 100644 index caad412..0000000 Binary files a/build/test/out/c/test_checkGameEnd_runner.o and /dev/null differ diff --git a/build/test/out/c/test_clearScreen.o b/build/test/out/c/test_clearScreen.o deleted file mode 100644 index 53e83a8..0000000 Binary files a/build/test/out/c/test_clearScreen.o and /dev/null differ diff --git a/build/test/out/c/test_clearScreen_runner.o b/build/test/out/c/test_clearScreen_runner.o deleted file mode 100644 index a4e758e..0000000 Binary files a/build/test/out/c/test_clearScreen_runner.o and /dev/null differ diff --git a/build/test/out/c/test_collision.o b/build/test/out/c/test_collision.o deleted file mode 100644 index 542f42a..0000000 Binary files a/build/test/out/c/test_collision.o and /dev/null differ diff --git a/build/test/out/c/test_collision_runner.o b/build/test/out/c/test_collision_runner.o deleted file mode 100644 index 56e133c..0000000 Binary files a/build/test/out/c/test_collision_runner.o and /dev/null differ diff --git a/build/test/out/c/test_is_Valid_tile.o b/build/test/out/c/test_is_Valid_tile.o deleted file mode 100644 index ac4d5d3..0000000 Binary files a/build/test/out/c/test_is_Valid_tile.o and /dev/null differ diff --git a/build/test/out/c/test_is_Valid_tile_runner.o b/build/test/out/c/test_is_Valid_tile_runner.o deleted file mode 100644 index 84ab5b4..0000000 Binary files a/build/test/out/c/test_is_Valid_tile_runner.o and /dev/null differ diff --git a/build/test/out/c/test_moving_snake.o b/build/test/out/c/test_moving_snake.o deleted file mode 100644 index 829d7f1..0000000 Binary files a/build/test/out/c/test_moving_snake.o and /dev/null differ diff --git a/build/test/out/c/test_moving_snake_runner.o b/build/test/out/c/test_moving_snake_runner.o deleted file mode 100644 index 06ec999..0000000 Binary files a/build/test/out/c/test_moving_snake_runner.o and /dev/null differ diff --git a/build/test/out/c/test_number_of_bombs.o b/build/test/out/c/test_number_of_bombs.o deleted file mode 100644 index 1d66c5f..0000000 Binary files a/build/test/out/c/test_number_of_bombs.o and /dev/null differ diff --git a/build/test/out/c/test_number_of_bombs_runner.o b/build/test/out/c/test_number_of_bombs_runner.o deleted file mode 100644 index d3a3c43..0000000 Binary files a/build/test/out/c/test_number_of_bombs_runner.o and /dev/null differ diff --git a/build/test/out/c/test_part_of_snake.o b/build/test/out/c/test_part_of_snake.o deleted file mode 100644 index 934775c..0000000 Binary files a/build/test/out/c/test_part_of_snake.o and /dev/null differ diff --git a/build/test/out/c/test_part_of_snake_runner.o b/build/test/out/c/test_part_of_snake_runner.o deleted file mode 100644 index 021fd43..0000000 Binary files a/build/test/out/c/test_part_of_snake_runner.o and /dev/null differ diff --git a/build/test/out/c/test_playerInputMovement.o b/build/test/out/c/test_playerInputMovement.o deleted file mode 100644 index 0c89b5e..0000000 Binary files a/build/test/out/c/test_playerInputMovement.o and /dev/null differ diff --git a/build/test/out/c/test_playerInputMovement_runner.o b/build/test/out/c/test_playerInputMovement_runner.o deleted file mode 100644 index 870cc10..0000000 Binary files a/build/test/out/c/test_playerInputMovement_runner.o and /dev/null differ diff --git a/build/test/out/c/test_pong.o b/build/test/out/c/test_pong.o deleted file mode 100644 index a6be32c..0000000 Binary files a/build/test/out/c/test_pong.o and /dev/null differ diff --git a/build/test/out/c/test_pong_runner.o b/build/test/out/c/test_pong_runner.o deleted file mode 100644 index 77ffebf..0000000 Binary files a/build/test/out/c/test_pong_runner.o and /dev/null differ diff --git a/build/test/out/c/test_template.o b/build/test/out/c/test_template.o deleted file mode 100644 index 73f7868..0000000 Binary files a/build/test/out/c/test_template.o and /dev/null differ diff --git a/build/test/out/c/test_template_runner.o b/build/test/out/c/test_template_runner.o deleted file mode 100644 index 3c6beb1..0000000 Binary files a/build/test/out/c/test_template_runner.o and /dev/null differ diff --git a/build/test/out/c/test_tictactoe.o b/build/test/out/c/test_tictactoe.o deleted file mode 100644 index a704cef..0000000 Binary files a/build/test/out/c/test_tictactoe.o and /dev/null differ diff --git a/build/test/out/c/test_tictactoe_runner.o b/build/test/out/c/test_tictactoe_runner.o deleted file mode 100644 index eff4dfd..0000000 Binary files a/build/test/out/c/test_tictactoe_runner.o and /dev/null differ diff --git a/build/test/out/c/unity.o b/build/test/out/c/unity.o index e8bdd69..94dab28 100644 Binary files a/build/test/out/c/unity.o and b/build/test/out/c/unity.o differ diff --git a/build/test/out/test_add.out b/build/test/out/test_add.out deleted file mode 100755 index f62e043..0000000 Binary files a/build/test/out/test_add.out and /dev/null differ diff --git a/build/test/out/test_bomb_in_array.out b/build/test/out/test_bomb_in_array.out deleted file mode 100755 index a2618c0..0000000 Binary files a/build/test/out/test_bomb_in_array.out and /dev/null differ diff --git a/build/test/out/test_checkCollision.out b/build/test/out/test_checkCollision.out deleted file mode 100755 index 4a9b6f9..0000000 Binary files a/build/test/out/test_checkCollision.out and /dev/null differ diff --git a/build/test/out/test_checkGameEnd.out b/build/test/out/test_checkGameEnd.out deleted file mode 100755 index 476ee5f..0000000 Binary files a/build/test/out/test_checkGameEnd.out and /dev/null differ diff --git a/build/test/out/test_clearScreen.out b/build/test/out/test_clearScreen.out deleted file mode 100755 index 2429c48..0000000 Binary files a/build/test/out/test_clearScreen.out and /dev/null differ diff --git a/build/test/out/test_collision.out b/build/test/out/test_collision.out deleted file mode 100755 index 022a79c..0000000 Binary files a/build/test/out/test_collision.out and /dev/null differ diff --git a/build/test/out/test_factorial.out b/build/test/out/test_factorial.out index b7a6cec..839f316 100755 Binary files a/build/test/out/test_factorial.out and b/build/test/out/test_factorial.out differ diff --git a/build/test/out/test_is_Valid_tile.out b/build/test/out/test_is_Valid_tile.out deleted file mode 100755 index 4105934..0000000 Binary files a/build/test/out/test_is_Valid_tile.out and /dev/null differ diff --git a/build/test/out/test_moving_snake.out b/build/test/out/test_moving_snake.out deleted file mode 100755 index e3f2dcf..0000000 Binary files a/build/test/out/test_moving_snake.out and /dev/null differ diff --git a/build/test/out/test_number_of_bombs.out b/build/test/out/test_number_of_bombs.out deleted file mode 100755 index 7ae6181..0000000 Binary files a/build/test/out/test_number_of_bombs.out and /dev/null differ diff --git a/build/test/out/test_part_of_snake.out b/build/test/out/test_part_of_snake.out deleted file mode 100755 index 87a8574..0000000 Binary files a/build/test/out/test_part_of_snake.out and /dev/null differ diff --git a/build/test/out/test_playerInputMovement.out b/build/test/out/test_playerInputMovement.out deleted file mode 100755 index 3b9604e..0000000 Binary files a/build/test/out/test_playerInputMovement.out and /dev/null differ diff --git a/build/test/out/test_pong.out b/build/test/out/test_pong.out deleted file mode 100755 index a2c366e..0000000 Binary files a/build/test/out/test_pong.out and /dev/null differ diff --git a/build/test/out/test_pow.out b/build/test/out/test_pow.out index 1572d74..5b79e45 100755 Binary files a/build/test/out/test_pow.out and b/build/test/out/test_pow.out differ diff --git a/build/test/out/test_template.out b/build/test/out/test_template.out deleted file mode 100755 index 69915c0..0000000 Binary files a/build/test/out/test_template.out and /dev/null differ diff --git a/build/test/out/test_tictactoe.out b/build/test/out/test_tictactoe.out deleted file mode 100755 index 3718d07..0000000 Binary files a/build/test/out/test_tictactoe.out and /dev/null differ diff --git a/build/test/preprocess/files/test_add.c b/build/test/preprocess/files/test_add.c deleted file mode 100644 index fe4db9b..0000000 --- a/build/test/preprocess/files/test_add.c +++ /dev/null @@ -1,79 +0,0 @@ -#include "build/temp/../../src/main/c/Calculator/calculator.h" -#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){ - - - -} - -void tearDown(void){ - -} - - - - - -void test_pow_N_N(void){ - - - - double result; - - double b = 3; - - double a = 3; - - - - - - result = pow(a, b); - - - - - - UnityAssertEqualNumber((UNITY_INT)((27)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(23), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_pow_Z_N(void){ - - - - double result; - - double b = 3; - - double a = -3; - - - - - - result = pow(a, b); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-27)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(36), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_bomb_in_array.c b/build/test/preprocess/files/test_bomb_in_array.c deleted file mode 100644 index 14de752..0000000 --- a/build/test/preprocess/files/test_bomb_in_array.c +++ /dev/null @@ -1,79 +0,0 @@ -#include "build/temp/../../src/main/c/Minesweeper/minesweeper_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_bomb_in_array(void){ - - - - - - _Bool - - result; - - int array[] = {5, 9, 42, 6, 87, 95, 202, 13, 45 ,78}; - - int bomb = 42; - - int length = 10; - - - - - - result = array_contains_value(array, bomb, length); - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(22)));}} while(0); - -} - - - - - -void test_bomb_not_in_array(void){ - - - - - - _Bool - - result; - - int array[] = {5, 9, 42, 6, 87, 95, 202, 13, 45 ,78}; - - int bomb = 0; - - int length = 10; - - - - - - result = array_contains_value(array, bomb, length); - - - - - - do {if (!(result)) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(37)));}} while(0); - -} diff --git a/build/test/preprocess/files/test_checkCollision.c b/build/test/preprocess/files/test_checkCollision.c deleted file mode 100644 index 79e7083..0000000 --- a/build/test/preprocess/files/test_checkCollision.c +++ /dev/null @@ -1,143 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -typedef struct { - - int x; - - int y; - - int speedX; - - int speedY; - -} Ball; - - - -typedef struct { - - int x; - - int y; - - int width; - - int height; - -} Paddle; - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_checkCollision(void){ - - Ball ball = {10, 10, 1, 1}; - - Paddle paddle = {50, 10, 5, 10}; - - - - - - ball.x = 0; - - int result1 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result1)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - - - - ball.x = 40 - 1; - - int result2 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result2)), ( - - ((void *)0) - - ), (UNITY_UINT)(39), UNITY_DISPLAY_STYLE_INT); - - - - - - ball.x = 5; - - ball.y = 0; - - int result3 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result3)), ( - - ((void *)0) - - ), (UNITY_UINT)(45), UNITY_DISPLAY_STYLE_INT); - - - - ball.y = 20 - 1; - - int result4 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result4)), ( - - ((void *)0) - - ), (UNITY_UINT)(49), UNITY_DISPLAY_STYLE_INT); - - - - - - ball.x = paddle.x - 1; - - ball.y = paddle.y + 1; - - int result5 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result5)), ( - - ((void *)0) - - ), (UNITY_UINT)(55), UNITY_DISPLAY_STYLE_INT); - - - - ball.x = paddle.x + 1; - - ball.y = paddle.y + 1; - - int result6 = checkCollision(ball, paddle.y, paddle.y); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result6)), ( - - ((void *)0) - - ), (UNITY_UINT)(60), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_checkGameEnd.c b/build/test/preprocess/files/test_checkGameEnd.c deleted file mode 100644 index 3c0d662..0000000 --- a/build/test/preprocess/files/test_checkGameEnd.c +++ /dev/null @@ -1,69 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_checkGameEnd(void){ - - - - int maxScore = 5; - - int score1 = 4, score2 = 2; - - - - - - int result = checkGameEnd(score1, score2, maxScore); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(23), UNITY_DISPLAY_STYLE_INT); - - - - - - score1 = 5; - - result = checkGameEnd(score1, score2, maxScore); - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(28), UNITY_DISPLAY_STYLE_INT); - - - - - - - -} diff --git a/build/test/preprocess/files/test_clearScreen.c b/build/test/preprocess/files/test_clearScreen.c deleted file mode 100644 index 74ec6bf..0000000 --- a/build/test/preprocess/files/test_clearScreen.c +++ /dev/null @@ -1,73 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - - - -char screen[20][40 +1]; - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_clearScreen(void){ - - - - int i, j; - - for (i = 0; i < 20; i++) { - - for (j = 0; j < 40; j++) { - - screen[i][j] = ' '; - - } - - screen[i][j] = '\0'; - - } - - - - - - clearScreen(); - - - - - - for (i = 0; i < 20; i++) { - - for (j = 0; j < 40; j++) { - - UnityAssertEqualNumber((UNITY_INT)((' ')), (UNITY_INT)((screen[i][j])), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - - } - - } - -} diff --git a/build/test/preprocess/files/test_collision.c b/build/test/preprocess/files/test_collision.c deleted file mode 100644 index a159403..0000000 --- a/build/test/preprocess/files/test_collision.c +++ /dev/null @@ -1,102 +0,0 @@ -#include "src/main/c/Snake/get_character.h" -#include "src/main/c/Snake/snake_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_self_collision(void){ - - - - - - _Bool - - result; - - Snake snake = {1, 5, {6 + 16 * 6, 6 + 16 * 7, 7 + 16 * 7, 7 + 16 * 6, 6 + 16 * 6}}; - - - - - - result = check_if_dead(&snake); - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(21)));}} while(0); - -} - - - - - -void test_no_collision(void){ - - - - - - _Bool - - result; - - Snake snake = initialize_snake(); - - - - - - result = check_if_dead(&snake); - - - - - - do {if (!(result)) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(34)));}} while(0); - -} - - - - - -void test_wall_collision(void){ - - - - - - _Bool - - result; - - Snake snake = {-1, 4, {0 + 16 * 6, 1 + 16 * 6, 2 + 16 * 6, 3 + 16 * 6}}; - - - - - - result = check_if_dead(&snake); - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(47)));}} while(0); - -} diff --git a/build/test/preprocess/files/test_is_Valid_tile.c b/build/test/preprocess/files/test_is_Valid_tile.c deleted file mode 100644 index 5911aa4..0000000 --- a/build/test/preprocess/files/test_is_Valid_tile.c +++ /dev/null @@ -1,269 +0,0 @@ -#include "build/temp/../../src/main/c/Minesweeper/minesweeper_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_detect_not_valid_tile_left(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 2; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_not_valid_tile_up(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 3; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_not_valid_tile_right(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 5; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(49), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_not_valid_tile_down(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 4; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(63), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_left(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 2; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((board.width * board.height - 2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(77), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_up(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = board.width * board.height - 1; - - int direction = 3; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((board.width * (board.height - 1) - 1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(91), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_right(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 5; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(105), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_detect_valid_tile_down(void){ - - - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0; - - int direction = 4; - - int result; - - - - - - result = is_Valid_tile(&board, tile, direction); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0 + board.width)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(119), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_moving_snake.c b/build/test/preprocess/files/test_moving_snake.c deleted file mode 100644 index b305c52..0000000 --- a/build/test/preprocess/files/test_moving_snake.c +++ /dev/null @@ -1,142 +0,0 @@ -#include "build/temp/../../src/main/c/Snake/get_character.h" -#include "build/temp/../../src/main/c/Snake/snake_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_moving_right(void){ - - - - - - _Bool - - result; - - Snake snake = {1, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {1, 3, {9 + 16 * 6, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(24)));}} while(0); - -} - - - -void test_moving_down(void){ - - - - - - _Bool - - result; - - Snake snake = {16, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {16, 3, {8 + 16 * 7, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(38)));}} while(0); - -} - - - -void test_moving_left(void){ - - - - - - _Bool - - result; - - Snake snake = {-1, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {-1, 3, {7 + 16 * 6, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(52)));}} while(0); - -} - - - -void test_moving_up(void){ - - - - - - _Bool - - result; - - Snake snake = {-16, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - - Snake expected = {-16, 3, {8 + 16 * 5, 8 + 16 * 6, 7 + 16 * 6}}; - - - - - - move_snake(&snake); - - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - - - - - do {if ((result)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(66)));}} while(0); - -} diff --git a/build/test/preprocess/files/test_number_of_bombs.c b/build/test/preprocess/files/test_number_of_bombs.c deleted file mode 100644 index 9b1981f..0000000 --- a/build/test/preprocess/files/test_number_of_bombs.c +++ /dev/null @@ -1,205 +0,0 @@ -#include "build/temp/../../src/main/c/Minesweeper/minesweeper_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_no_bombs_placed_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0 + board.width * 1; - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_searching_for_bombs_on_correct_tiles(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0 + board.width * 1; - - board.bombs[0] = 0 + board.width * 3; - - board.bombs[1] = 2 + board.width * 1; - - board.bombs[2] = board.width - 1 + board.width * 1; - - board.bombs[3] = 0 + board.width * (board.height - 1); - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(38), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_2_bombs_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 0 + board.width * 1; - - board.bombs[0] = 0 + board.width * 2; - - board.bombs[1] = 1 + board.width * 1; - - board.bombs[2] = board.width - 1 + board.width * 1; - - board.bombs[3] = 0 + board.width * (board.height - 1); - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(55), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_5_bombs_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 1 + board.width * 0; - - board.bombs[0] = 0 + board.width * 0; - - board.bombs[1] = 2 + board.width * 0; - - board.bombs[2] = 0 + board.width * 1; - - board.bombs[3] = 1 + board.width * 1; - - board.bombs[4] = 2 + board.width * 1; - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((5)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(73), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_8_bombs_around_tile(void){ - - - - int result; - - Minesweeper_Board board = initialize_minesweeper(); - - int tile = 7 + board.width * 7; - - board.bombs[0] = 6 + board.width * 6; - - board.bombs[1] = 7 + board.width * 6; - - board.bombs[2] = 8 + board.width * 6; - - board.bombs[3] = 6 + board.width * 7; - - board.bombs[4] = 8 + board.width * 7; - - board.bombs[5] = 6 + board.width * 8; - - board.bombs[6] = 7 + board.width * 8; - - board.bombs[7] = 8 + board.width * 8; - - - - - - result = number_of_bombs(&board, tile); - - - - - - UnityAssertEqualNumber((UNITY_INT)((8)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(94), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_part_of_snake.c b/build/test/preprocess/files/test_part_of_snake.c deleted file mode 100644 index b488cb0..0000000 --- a/build/test/preprocess/files/test_part_of_snake.c +++ /dev/null @@ -1,102 +0,0 @@ -#include "build/temp/../../src/main/c/Snake/get_character.h" -#include "build/temp/../../src/main/c/Snake/snake_start.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){} - -void tearDown(void){} - - - - - -void test_find_head(void){ - - - - int result; - - Snake snake = initialize_snake(); - - - - - - result = part_of_snake(&snake, 8 * 16 + 8); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(20), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_get_correct_index(void){ - - - - int result; - - Snake snake = initialize_snake(); - - - - - - result = part_of_snake(&snake, 8 * 16 + 6); - - - - - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_snake_not_on_tile(void){ - - - - int result; - - Snake snake = initialize_snake(); - - - - - - result = part_of_snake(&snake, 6 * 16 + 6); - - - - - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(46), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_playerInputMovement.c b/build/test/preprocess/files/test_playerInputMovement.c deleted file mode 100644 index d38ca76..0000000 --- a/build/test/preprocess/files/test_playerInputMovement.c +++ /dev/null @@ -1,83 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - -typedef struct { - - int x; - - int y; - - int speedX; - - int speedY; - -} Paddle; - - - - - -void setUp(void){ - - - -} - - - -void tearDown(void){ - -} - - - -void test_playerInputMovement(void){ - - - - int paddlePositionY = 10; - - int userInput = -1; - - int expectedY = paddlePositionY - 1; - - - - processPlayerInput(&paddlePositionY, userInput); - - UnityAssertEqualNumber((UNITY_INT)((expectedY)), (UNITY_INT)((paddlePositionY)), ( - - ((void *)0) - - ), (UNITY_UINT)(27), UNITY_DISPLAY_STYLE_INT); - - - - - - userInput = 1; - - expectedY = paddlePositionY + 1; - - - - - - processPlayerInput(&paddlePositionY, userInput); - - UnityAssertEqualNumber((UNITY_INT)((expectedY)), (UNITY_INT)((paddlePositionY)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - - - - - - - -} diff --git a/build/test/preprocess/files/test_pong.c b/build/test/preprocess/files/test_pong.c deleted file mode 100644 index 7e1dfbf..0000000 --- a/build/test/preprocess/files/test_pong.c +++ /dev/null @@ -1,51 +0,0 @@ -#include "src/main/c/Pong/pong.h" -#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){ - - - -} - -void tearDown(void){ - -} - - - - - -void test_input_all_5(void){ - - - - int a = 4, b = 5; - - - - - - resetScore( &a, &b ); - - - - - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((a)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((b)), ( - - ((void *)0) - - ), (UNITY_UINT)(22), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_template.c b/build/test/preprocess/files/test_template.c deleted file mode 100644 index 0380b7b..0000000 --- a/build/test/preprocess/files/test_template.c +++ /dev/null @@ -1,73 +0,0 @@ -#include "src/main/c/Template/game100.h" -#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - -void setUp(void){ - - - -} - -void tearDown(void){ - -} - - - - - -void test_input_all_5(void){ - - - - int result; - - - - - - result = some_function(5, 5); - - - - - - UnityAssertEqualNumber((UNITY_INT)((6)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(21), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_ignore_rest_from_division(void){ - - - - int result; - - - - - - result = some_function(5, 6); - - - - - - UnityAssertEqualNumber((UNITY_INT)((5)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_tictactoe.c b/build/test/preprocess/files/test_tictactoe.c deleted file mode 100644 index e69de29..0000000 diff --git a/build/test/preprocess/includes/test_add.c b/build/test/preprocess/includes/test_add.c deleted file mode 100644 index 26256f2..0000000 --- a/build/test/preprocess/includes/test_add.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- build/temp/../../src/main/c/Calculator/calculator.h diff --git a/build/test/preprocess/includes/test_bomb_in_array.c b/build/test/preprocess/includes/test_bomb_in_array.c deleted file mode 100644 index 5630e0a..0000000 --- a/build/test/preprocess/includes/test_bomb_in_array.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- build/temp/../../src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/test/preprocess/includes/test_checkCollision.c b/build/test/preprocess/includes/test_checkCollision.c deleted file mode 100644 index 2b3a590..0000000 --- a/build/test/preprocess/includes/test_checkCollision.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- src/main/c/Pong/pong.h diff --git a/build/test/preprocess/includes/test_checkGameEnd.c b/build/test/preprocess/includes/test_checkGameEnd.c deleted file mode 100644 index 2b3a590..0000000 --- a/build/test/preprocess/includes/test_checkGameEnd.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- src/main/c/Pong/pong.h diff --git a/build/test/preprocess/includes/test_clearScreen.c b/build/test/preprocess/includes/test_clearScreen.c deleted file mode 100644 index 2b3a590..0000000 --- a/build/test/preprocess/includes/test_clearScreen.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- src/main/c/Pong/pong.h diff --git a/build/test/preprocess/includes/test_collision.c b/build/test/preprocess/includes/test_collision.c deleted file mode 100644 index a508f7d..0000000 --- a/build/test/preprocess/includes/test_collision.c +++ /dev/null @@ -1,4 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- src/main/c/Snake/snake_start.h -- src/main/c/Snake/get_character.h diff --git a/build/test/preprocess/includes/test_is_Valid_tile.c b/build/test/preprocess/includes/test_is_Valid_tile.c deleted file mode 100644 index 5630e0a..0000000 --- a/build/test/preprocess/includes/test_is_Valid_tile.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- build/temp/../../src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/test/preprocess/includes/test_moving_snake.c b/build/test/preprocess/includes/test_moving_snake.c deleted file mode 100644 index 879a735..0000000 --- a/build/test/preprocess/includes/test_moving_snake.c +++ /dev/null @@ -1,4 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- build/temp/../../src/main/c/Snake/snake_start.h -- build/temp/../../src/main/c/Snake/get_character.h diff --git a/build/test/preprocess/includes/test_number_of_bombs.c b/build/test/preprocess/includes/test_number_of_bombs.c deleted file mode 100644 index 5630e0a..0000000 --- a/build/test/preprocess/includes/test_number_of_bombs.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- build/temp/../../src/main/c/Minesweeper/minesweeper_start.h diff --git a/build/test/preprocess/includes/test_part_of_snake.c b/build/test/preprocess/includes/test_part_of_snake.c deleted file mode 100644 index 879a735..0000000 --- a/build/test/preprocess/includes/test_part_of_snake.c +++ /dev/null @@ -1,4 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- build/temp/../../src/main/c/Snake/snake_start.h -- build/temp/../../src/main/c/Snake/get_character.h diff --git a/build/test/preprocess/includes/test_playerInputMovement.c b/build/test/preprocess/includes/test_playerInputMovement.c deleted file mode 100644 index 2b3a590..0000000 --- a/build/test/preprocess/includes/test_playerInputMovement.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- src/main/c/Pong/pong.h diff --git a/build/test/preprocess/includes/test_pong.c b/build/test/preprocess/includes/test_pong.c deleted file mode 100644 index 2b3a590..0000000 --- a/build/test/preprocess/includes/test_pong.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- src/main/c/Pong/pong.h diff --git a/build/test/preprocess/includes/test_template.c b/build/test/preprocess/includes/test_template.c deleted file mode 100644 index e60bf2a..0000000 --- a/build/test/preprocess/includes/test_template.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" -- src/main/c/Template/game100.h diff --git a/build/test/preprocess/includes/test_tictactoe.c b/build/test/preprocess/includes/test_tictactoe.c deleted file mode 100644 index dcd024e..0000000 --- a/build/test/preprocess/includes/test_tictactoe.c +++ /dev/null @@ -1 +0,0 @@ ---- [] diff --git a/build/test/results/test_add.pass b/build/test/results/test_add.pass deleted file mode 100644 index 4deef9a..0000000 --- a/build/test/results/test_add.pass +++ /dev/null @@ -1,22 +0,0 @@ ---- -:source: - :path: test/Calculator - :file: test_add.c -:successes: -- :test: test_pow_N_N - :line: 13 - :message: '' - :unity_test_time: 0 -- :test: test_pow_Z_N - :line: 26 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 2 - :passed: 2 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.007150935009121895 diff --git a/build/test/results/test_bomb_in_array.pass b/build/test/results/test_bomb_in_array.pass deleted file mode 100644 index 7c25b4d..0000000 --- a/build/test/results/test_bomb_in_array.pass +++ /dev/null @@ -1,22 +0,0 @@ ---- -:source: - :path: test/Minesweeper - :file: test_bomb_in_array.c -:successes: -- :test: test_bomb_in_array - :line: 11 - :message: '' - :unity_test_time: 0 -- :test: test_bomb_not_in_array - :line: 26 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 2 - :passed: 2 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.001660895999521017 diff --git a/build/test/results/test_checkCollision.pass b/build/test/results/test_checkCollision.pass deleted file mode 100644 index 8d6367c..0000000 --- a/build/test/results/test_checkCollision.pass +++ /dev/null @@ -1,18 +0,0 @@ ---- -:source: - :path: test/Pong - :file: test_checkCollision.c -:successes: -- :test: test_checkCollision - :line: 28 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0022849989982205443 diff --git a/build/test/results/test_checkGameEnd.pass b/build/test/results/test_checkGameEnd.pass deleted file mode 100644 index 9faf7ce..0000000 --- a/build/test/results/test_checkGameEnd.pass +++ /dev/null @@ -1,18 +0,0 @@ ---- -:source: - :path: test/Pong - :file: test_checkGameEnd.c -:successes: -- :test: test_checkGameEnd - :line: 14 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0017912769981194288 diff --git a/build/test/results/test_clearScreen.pass b/build/test/results/test_clearScreen.pass deleted file mode 100644 index 6ce9220..0000000 --- a/build/test/results/test_clearScreen.pass +++ /dev/null @@ -1,19 +0,0 @@ ---- -:source: - :path: test/Pong - :file: test_clearScreen.c -:successes: -- :test: test_clearScreen - :line: 17 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: -- "\e[H\e[2J\e[3J" -:time: 0.003976027997850906 diff --git a/build/test/results/test_collision.pass b/build/test/results/test_collision.pass deleted file mode 100644 index 2fad159..0000000 --- a/build/test/results/test_collision.pass +++ /dev/null @@ -1,26 +0,0 @@ ---- -:source: - :path: test/Snake - :file: test_collision.c -:successes: -- :test: test_self_collision - :line: 12 - :message: '' - :unity_test_time: 0 -- :test: test_no_collision - :line: 25 - :message: '' - :unity_test_time: 0 -- :test: test_wall_collision - :line: 38 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 3 - :passed: 3 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0017233269973075949 diff --git a/build/test/results/test_factorial.pass b/build/test/results/test_factorial.pass index ede2338..4f128ef 100644 --- a/build/test/results/test_factorial.pass +++ b/build/test/results/test_factorial.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0060175769904162735 +:time: 0.00677925901254639 diff --git a/build/test/results/test_is_Valid_tile.pass b/build/test/results/test_is_Valid_tile.pass deleted file mode 100644 index 2d4eef4..0000000 --- a/build/test/results/test_is_Valid_tile.pass +++ /dev/null @@ -1,46 +0,0 @@ ---- -:source: - :path: test/Minesweeper - :file: test_is_Valid_tile.c -:successes: -- :test: test_detect_not_valid_tile_left - :line: 10 - :message: '' - :unity_test_time: 0 -- :test: test_detect_not_valid_tile_up - :line: 24 - :message: '' - :unity_test_time: 0 -- :test: test_detect_not_valid_tile_right - :line: 38 - :message: '' - :unity_test_time: 0 -- :test: test_detect_not_valid_tile_down - :line: 52 - :message: '' - :unity_test_time: 0 -- :test: test_detect_valid_tile_left - :line: 66 - :message: '' - :unity_test_time: 0 -- :test: test_detect_valid_tile_up - :line: 80 - :message: '' - :unity_test_time: 0 -- :test: test_detect_valid_tile_right - :line: 94 - :message: '' - :unity_test_time: 0 -- :test: test_detect_valid_tile_down - :line: 108 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 8 - :passed: 8 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0016319420028594323 diff --git a/build/test/results/test_moving_snake.pass b/build/test/results/test_moving_snake.pass deleted file mode 100644 index ca30b84..0000000 --- a/build/test/results/test_moving_snake.pass +++ /dev/null @@ -1,30 +0,0 @@ ---- -:source: - :path: test/Snake - :file: test_moving_snake.c -:successes: -- :test: test_moving_right - :line: 13 - :message: '' - :unity_test_time: 0 -- :test: test_moving_down - :line: 27 - :message: '' - :unity_test_time: 0 -- :test: test_moving_left - :line: 41 - :message: '' - :unity_test_time: 0 -- :test: test_moving_up - :line: 55 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 4 - :passed: 4 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0028836580022471026 diff --git a/build/test/results/test_number_of_bombs.pass b/build/test/results/test_number_of_bombs.pass deleted file mode 100644 index 2294956..0000000 --- a/build/test/results/test_number_of_bombs.pass +++ /dev/null @@ -1,34 +0,0 @@ ---- -:source: - :path: test/Minesweeper - :file: test_number_of_bombs.c -:successes: -- :test: test_no_bombs_placed_around_tile - :line: 11 - :message: '' - :unity_test_time: 0 -- :test: test_searching_for_bombs_on_correct_tiles - :line: 24 - :message: '' - :unity_test_time: 0 -- :test: test_2_bombs_around_tile - :line: 41 - :message: '' - :unity_test_time: 0 -- :test: test_5_bombs_around_tile - :line: 58 - :message: '' - :unity_test_time: 0 -- :test: test_8_bombs_around_tile - :line: 76 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 5 - :passed: 5 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0025690569964353926 diff --git a/build/test/results/test_part_of_snake.pass b/build/test/results/test_part_of_snake.pass deleted file mode 100644 index 9226901..0000000 --- a/build/test/results/test_part_of_snake.pass +++ /dev/null @@ -1,26 +0,0 @@ ---- -:source: - :path: test/Snake - :file: test_part_of_snake.c -:successes: -- :test: test_find_head - :line: 11 - :message: '' - :unity_test_time: 0 -- :test: test_get_correct_index - :line: 24 - :message: '' - :unity_test_time: 0 -- :test: test_snake_not_on_tile - :line: 37 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 3 - :passed: 3 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.002005319998716004 diff --git a/build/test/results/test_playerInputMovement.pass b/build/test/results/test_playerInputMovement.pass deleted file mode 100644 index ba39949..0000000 --- a/build/test/results/test_playerInputMovement.pass +++ /dev/null @@ -1,18 +0,0 @@ ---- -:source: - :path: test/Pong - :file: test_playerInputMovement.c -:successes: -- :test: test_playerInputMovement - :line: 20 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0013923250007792376 diff --git a/build/test/results/test_pong.pass b/build/test/results/test_pong.pass deleted file mode 100644 index baea06b..0000000 --- a/build/test/results/test_pong.pass +++ /dev/null @@ -1,18 +0,0 @@ ---- -:source: - :path: test/Pong - :file: test_pong.c -:successes: -- :test: test_input_all_5 - :line: 13 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0018394770013401285 diff --git a/build/test/results/test_pow.pass b/build/test/results/test_pow.pass index d103a0d..5767cde 100644 --- a/build/test/results/test_pow.pass +++ b/build/test/results/test_pow.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0062921050121076405 +:time: 0.006241032999241725 diff --git a/build/test/results/test_template.pass b/build/test/results/test_template.pass deleted file mode 100644 index 296b3f1..0000000 --- a/build/test/results/test_template.pass +++ /dev/null @@ -1,26 +0,0 @@ ---- -:source: - :path: test - :file: test_template.c -:successes: -- :test: test_input_all_5 - :line: 13 - :message: '' - :unity_test_time: 0 -- :test: test_ignore_rest_from_division - :line: 25 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 2 - :passed: 2 - :failed: 0 - :ignored: 0 -:stdout: [] -<<<<<<< HEAD -:time: 0.002953332004835829 -======= -:time: 0.001957057000254281 ->>>>>>> 2acead7a056f156a3c7129d740f7d5585fbc805f diff --git a/build/test/results/test_tictactoe.pass b/build/test/results/test_tictactoe.pass deleted file mode 100644 index 010d758..0000000 --- a/build/test/results/test_tictactoe.pass +++ /dev/null @@ -1,14 +0,0 @@ ---- -:source: - :path: test - :file: test_tictactoe.c -:successes: [] -:failures: [] -:ignores: [] -:counts: - :total: 0 - :passed: 0 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.0019282139983261004 diff --git a/build/test/runners/test_add_runner.c b/build/test/runners/test_add_runner.c deleted file mode 100644 index 6897488..0000000 --- a/build/test/runners/test_add_runner.c +++ /dev/null @@ -1,83 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_pow_N_N(void); -extern void test_pow_Z_N(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_add.c"); - run_test(test_pow_N_N, "test_pow_N_N", 13); - run_test(test_pow_Z_N, "test_pow_Z_N", 26); - - return UnityEnd(); -} diff --git a/build/test/runners/test_bomb_in_array_runner.c b/build/test/runners/test_bomb_in_array_runner.c deleted file mode 100644 index b3dbc90..0000000 --- a/build/test/runners/test_bomb_in_array_runner.c +++ /dev/null @@ -1,83 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_bomb_in_array(void); -extern void test_bomb_not_in_array(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_bomb_in_array.c"); - run_test(test_bomb_in_array, "test_bomb_in_array", 11); - run_test(test_bomb_not_in_array, "test_bomb_not_in_array", 26); - - return UnityEnd(); -} diff --git a/build/test/runners/test_checkCollision_runner.c b/build/test/runners/test_checkCollision_runner.c deleted file mode 100644 index 0bed50f..0000000 --- a/build/test/runners/test_checkCollision_runner.c +++ /dev/null @@ -1,81 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_checkCollision(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_checkCollision.c"); - run_test(test_checkCollision, "test_checkCollision", 28); - - return UnityEnd(); -} diff --git a/build/test/runners/test_checkGameEnd_runner.c b/build/test/runners/test_checkGameEnd_runner.c deleted file mode 100644 index d83fa82..0000000 --- a/build/test/runners/test_checkGameEnd_runner.c +++ /dev/null @@ -1,81 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_checkGameEnd(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_checkGameEnd.c"); - run_test(test_checkGameEnd, "test_checkGameEnd", 14); - - return UnityEnd(); -} diff --git a/build/test/runners/test_clearScreen_runner.c b/build/test/runners/test_clearScreen_runner.c deleted file mode 100644 index 9c1799e..0000000 --- a/build/test/runners/test_clearScreen_runner.c +++ /dev/null @@ -1,81 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_clearScreen(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_clearScreen.c"); - run_test(test_clearScreen, "test_clearScreen", 17); - - return UnityEnd(); -} diff --git a/build/test/runners/test_collision_runner.c b/build/test/runners/test_collision_runner.c deleted file mode 100644 index d726b30..0000000 --- a/build/test/runners/test_collision_runner.c +++ /dev/null @@ -1,85 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_self_collision(void); -extern void test_no_collision(void); -extern void test_wall_collision(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_collision.c"); - run_test(test_self_collision, "test_self_collision", 12); - run_test(test_no_collision, "test_no_collision", 25); - run_test(test_wall_collision, "test_wall_collision", 38); - - return UnityEnd(); -} diff --git a/build/test/runners/test_is_Valid_tile_runner.c b/build/test/runners/test_is_Valid_tile_runner.c deleted file mode 100644 index 25de69d..0000000 --- a/build/test/runners/test_is_Valid_tile_runner.c +++ /dev/null @@ -1,95 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_detect_not_valid_tile_left(void); -extern void test_detect_not_valid_tile_up(void); -extern void test_detect_not_valid_tile_right(void); -extern void test_detect_not_valid_tile_down(void); -extern void test_detect_valid_tile_left(void); -extern void test_detect_valid_tile_up(void); -extern void test_detect_valid_tile_right(void); -extern void test_detect_valid_tile_down(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_is_Valid_tile.c"); - run_test(test_detect_not_valid_tile_left, "test_detect_not_valid_tile_left", 10); - run_test(test_detect_not_valid_tile_up, "test_detect_not_valid_tile_up", 24); - run_test(test_detect_not_valid_tile_right, "test_detect_not_valid_tile_right", 38); - run_test(test_detect_not_valid_tile_down, "test_detect_not_valid_tile_down", 52); - run_test(test_detect_valid_tile_left, "test_detect_valid_tile_left", 66); - run_test(test_detect_valid_tile_up, "test_detect_valid_tile_up", 80); - run_test(test_detect_valid_tile_right, "test_detect_valid_tile_right", 94); - run_test(test_detect_valid_tile_down, "test_detect_valid_tile_down", 108); - - return UnityEnd(); -} diff --git a/build/test/runners/test_moving_snake_runner.c b/build/test/runners/test_moving_snake_runner.c deleted file mode 100644 index 8f786fb..0000000 --- a/build/test/runners/test_moving_snake_runner.c +++ /dev/null @@ -1,87 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_moving_right(void); -extern void test_moving_down(void); -extern void test_moving_left(void); -extern void test_moving_up(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_moving_snake.c"); - run_test(test_moving_right, "test_moving_right", 13); - run_test(test_moving_down, "test_moving_down", 27); - run_test(test_moving_left, "test_moving_left", 41); - run_test(test_moving_up, "test_moving_up", 55); - - return UnityEnd(); -} diff --git a/build/test/runners/test_number_of_bombs_runner.c b/build/test/runners/test_number_of_bombs_runner.c deleted file mode 100644 index e6e4376..0000000 --- a/build/test/runners/test_number_of_bombs_runner.c +++ /dev/null @@ -1,89 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_no_bombs_placed_around_tile(void); -extern void test_searching_for_bombs_on_correct_tiles(void); -extern void test_2_bombs_around_tile(void); -extern void test_5_bombs_around_tile(void); -extern void test_8_bombs_around_tile(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_number_of_bombs.c"); - run_test(test_no_bombs_placed_around_tile, "test_no_bombs_placed_around_tile", 11); - run_test(test_searching_for_bombs_on_correct_tiles, "test_searching_for_bombs_on_correct_tiles", 24); - run_test(test_2_bombs_around_tile, "test_2_bombs_around_tile", 41); - run_test(test_5_bombs_around_tile, "test_5_bombs_around_tile", 58); - run_test(test_8_bombs_around_tile, "test_8_bombs_around_tile", 76); - - return UnityEnd(); -} diff --git a/build/test/runners/test_part_of_snake_runner.c b/build/test/runners/test_part_of_snake_runner.c deleted file mode 100644 index 0f7e680..0000000 --- a/build/test/runners/test_part_of_snake_runner.c +++ /dev/null @@ -1,85 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_find_head(void); -extern void test_get_correct_index(void); -extern void test_snake_not_on_tile(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_part_of_snake.c"); - run_test(test_find_head, "test_find_head", 11); - run_test(test_get_correct_index, "test_get_correct_index", 24); - run_test(test_snake_not_on_tile, "test_snake_not_on_tile", 37); - - return UnityEnd(); -} diff --git a/build/test/runners/test_playerInputMovement_runner.c b/build/test/runners/test_playerInputMovement_runner.c deleted file mode 100644 index 6fde093..0000000 --- a/build/test/runners/test_playerInputMovement_runner.c +++ /dev/null @@ -1,81 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_playerInputMovement(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_playerInputMovement.c"); - run_test(test_playerInputMovement, "test_playerInputMovement", 20); - - return UnityEnd(); -} diff --git a/build/test/runners/test_pong_runner.c b/build/test/runners/test_pong_runner.c deleted file mode 100644 index 93a6451..0000000 --- a/build/test/runners/test_pong_runner.c +++ /dev/null @@ -1,81 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_input_all_5(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_pong.c"); - run_test(test_input_all_5, "test_input_all_5", 13); - - return UnityEnd(); -} diff --git a/build/test/runners/test_template_runner.c b/build/test/runners/test_template_runner.c deleted file mode 100644 index c43b631..0000000 --- a/build/test/runners/test_template_runner.c +++ /dev/null @@ -1,83 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); -extern void test_input_all_5(void); -extern void test_ignore_rest_from_division(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======Test Runner Used To Run Each Test=====*/ -static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) -{ - Unity.CurrentTestName = name; - Unity.CurrentTestLineNumber = line_num; -#ifdef UNITY_USE_COMMAND_LINE_ARGS - if (!UnityTestMatches()) - return; -#endif - Unity.NumberOfTests++; - UNITY_CLR_DETAILS(); - UNITY_EXEC_TIME_START(); - CMock_Init(); - if (TEST_PROTECT()) - { - setUp(); - func(); - } - if (TEST_PROTECT()) - { - tearDown(); - CMock_Verify(); - } - CMock_Destroy(); - UNITY_EXEC_TIME_STOP(); - UnityConcludeTest(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_template.c"); - run_test(test_input_all_5, "test_input_all_5", 13); - run_test(test_ignore_rest_from_division, "test_ignore_rest_from_division", 25); - - return UnityEnd(); -} diff --git a/build/test/runners/test_tictactoe_runner.c b/build/test/runners/test_tictactoe_runner.c deleted file mode 100644 index 161ff95..0000000 --- a/build/test/runners/test_tictactoe_runner.c +++ /dev/null @@ -1,57 +0,0 @@ -/* AUTOGENERATED FILE. DO NOT EDIT. */ - -/*=======Automagically Detected Files To Include=====*/ -#include "unity.h" - -int GlobalExpectCount; -int GlobalVerifyOrder; -char* GlobalOrderError; - -/*=======External Functions This Runner Calls=====*/ -extern void setUp(void); -extern void tearDown(void); - - -/*=======Mock Management=====*/ -static void CMock_Init(void) -{ - GlobalExpectCount = 0; - GlobalVerifyOrder = 0; - GlobalOrderError = NULL; -} -static void CMock_Verify(void) -{ -} -static void CMock_Destroy(void) -{ -} - -/*=======Setup (stub)=====*/ -void setUp(void) {} - -/*=======Teardown (stub)=====*/ -void tearDown(void) {} - -/*=======Test Reset Options=====*/ -void resetTest(void); -void resetTest(void) -{ - tearDown(); - CMock_Verify(); - CMock_Destroy(); - CMock_Init(); - setUp(); -} -void verifyTest(void); -void verifyTest(void) -{ - CMock_Verify(); -} - -/*=======MAIN=====*/ -int main(void) -{ - UnityBegin("test_tictactoe.c"); - - return UnityEnd(); -} diff --git a/test/Hangman/test_drawHangman.c b/test/Hangman/test_drawHangman.c deleted file mode 100644 index debca49..0000000 --- a/test/Hangman/test_drawHangman.c +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include -#include "drawHangman.h" -#include "playHangman.h" - -void test_drawHangman() { - // Test each case of incorrectGuesses - printf("Testing drawHangman(0):\n"); - drawHangman(0); - printf("\n"); - - printf("Testing drawHangman(1):\n"); - drawHangman(1); - printf("\n"); - - printf("Testing drawHangman(2):\n"); - drawHangman(2); - printf("\n"); - - printf("Testing drawHangman(3):\n"); - drawHangman(3); - printf("\n"); - - printf("Testing drawHangman(4):\n"); - drawHangman(4); - printf("\n"); - - printf("Testing drawHangman(5):\n"); - drawHangman(5); - printf("\n"); - - printf("Testing drawHangman(6):\n"); - drawHangman(6); - printf("\n"); - - printf("Testing drawHangman(7):\n"); - drawHangman(7); - printf("\n"); - -} \ No newline at end of file diff --git a/test/Hangman/test_drawHangman.h b/test/Hangman/test_drawHangman.h deleted file mode 100644 index 2c0ba83..0000000 --- a/test/Hangman/test_drawHangman.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef PMUW_PROJEKT_NOTEBINDER_TEST_DRAWHANGMAN_H -#define PMUW_PROJEKT_NOTEBINDER_TEST_DRAWHANGMAN_H -#include "drawHangman.c" -#endif //PMUW_PROJEKT_NOTEBINDER_TEST_DRAWHANGMAN_H diff --git a/test/Hangman/test_initializeHangman.c b/test/Hangman/test_initializeHangman.c deleted file mode 100644 index 9b5238b..0000000 --- a/test/Hangman/test_initializeHangman.c +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include "playHangman.h" - - -void test_displayRules() { - printf("Test Case 1: User inputs '1'\n"); - printf("Expected Output: 'Let's get started!'\n"); - printf("Actual Output: "); - printf("1\n"); - displayRules(); - - printf("\nTest Case 2: User inputs '2'\n"); - printf("Expected Output: Output of printRules() function\n"); - printf("Actual Output: "); - printf("2\n"); - displayRules(); - - printf("\nTest Case 3: User inputs invalid value\n"); - printf("Expected Output: 'Please enter either 1 or 2 to continue'\n"); - printf("Actual Output: "); - printf("invalid\n"); - displayRules(); -} diff --git a/test/Hangman/test_playHangman.c b/test/Hangman/test_playHangman.c deleted file mode 100644 index 94e9743..0000000 --- a/test/Hangman/test_playHangman.c +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "playHangman.c" -#include - -void test_displayRules() { - // Simulate user input: 1, 2, and an invalid input - printf("Test Case 1: User enters '1' (YES)\n"); - printf("Expected Output: \"Let's get started!\"\n"); - printf("Actual Output: "); - displayRules(); // Call displayRules() with input 1 - - printf("\nTest Case 2: User enters '2' (NO)\n"); - printf("Expected Output: Output of printRules()\n"); - printf("Actual Output: "); - displayRules(); // Call displayRules() with input 2 - - printf("\nTest Case 3: User enters an invalid input\n"); - printf("Expected Output: \"Please enter either 1 or 2 to continue:\"\n"); - printf("Actual Output: "); - displayRules(); // Call displayRules() with invalid input -} - -void test_toLower() { - printf("Test Case 1: Lowercase letter 'a'\n"); - printf("Expected Output: 'a'\n"); - char result = toLower('a'); - printf("Actual Output: '%c'\n", result); - assert(result == 'a'); - - printf("\nTest Case 2: Uppercase letter 'B'\n"); - printf("Expected Output: 'b'\n"); - result = toLower('B'); - printf("Actual Output: '%c'\n", result); - assert(result == 'b'); - - printf("\nTest Case 3: Non-alphabetic character '#'\n"); - printf("Expected Output: '#'\n"); - result = toLower('?'); - printf("Actual Output: '%c'\n", result); - assert(result == '?'); -} - -void test_initializeHangman() { - // Test case 1: Word with alphabets only - char wordToGuess1[] = "hangman"; - char currentGuess1[8]; // Make sure this size is enough to accommodate the wordToGuess and the null terminator - initializeHangman(wordToGuess1, currentGuess1); - assert(strcmp(currentGuess1, "_______") == 0); - - // Test case 2: Word with spaces (e.g: table tennis) - char wordToGuess2[] = "hello world"; - char currentGuess2[12]; // Make sure this size is enough to accommodate the wordToGuess and the null terminator - initializeHangman(wordToGuess2, currentGuess2); - assert(strcmp(currentGuess2, "_____ _____") == 0); - printf("initializeHangman test passed!\n"); -} \ No newline at end of file diff --git a/test/Minesweeper/test_bomb_in_array.c b/test/Minesweeper/test_bomb_in_array.c deleted file mode 100644 index 7073857..0000000 --- a/test/Minesweeper/test_bomb_in_array.c +++ /dev/null @@ -1,40 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include -#include "../../src/main/c/Minesweeper/minesweeper_start.h" - - -void setUp(void){} -void tearDown(void){} - - -void test_bomb_in_array(void){ - /* arrange */ - bool result; - int array[] = {5, 9, 42, 6, 87, 95, 202, 13, 45 ,78}; - int bomb = 42; - int length = 10; - - /* act */ - result = array_contains_value(array, bomb, length); - - /* assert */ - TEST_ASSERT_TRUE(result); -} - - -void test_bomb_not_in_array(void){ - /* arrange */ - bool result; - int array[] = {5, 9, 42, 6, 87, 95, 202, 13, 45 ,78}; - int bomb = 0; - int length = 10; - - /* act */ - result = array_contains_value(array, bomb, length); - - /* assert */ - TEST_ASSERT_FALSE(result); -} - -#endif // TEST \ No newline at end of file diff --git a/test/Minesweeper/test_is_Valid_tile.c b/test/Minesweeper/test_is_Valid_tile.c deleted file mode 100644 index 13e8980..0000000 --- a/test/Minesweeper/test_is_Valid_tile.c +++ /dev/null @@ -1,122 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "../../src/main/c/Minesweeper/minesweeper_start.h" - - -void setUp(void){} -void tearDown(void){} - - -void test_detect_not_valid_tile_left(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = 0; - int direction = 2; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(-1, result);//not valid tile -} - -void test_detect_not_valid_tile_up(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = 0; - int direction = 3; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(-1, result);//not valid tile -} - -void test_detect_not_valid_tile_right(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = board.width * board.height - 1; - int direction = 5; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(-1, result);//not valid tile -} - -void test_detect_not_valid_tile_down(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = board.width * board.height - 1; - int direction = 4; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(-1, result);//not valid tile -} - -void test_detect_valid_tile_left(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = board.width * board.height - 1; - int direction = 2; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(board.width * board.height - 2, result);//not valid tile -} - -void test_detect_valid_tile_up(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = board.width * board.height - 1; - int direction = 3; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(board.width * (board.height - 1) - 1, result);//not valid tile -} - -void test_detect_valid_tile_right(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = 0; - int direction = 5; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(1, result);//not valid tile -} - -void test_detect_valid_tile_down(void){ - /* arrange */ - Minesweeper_Board board = initialize_minesweeper(); - int tile = 0; - int direction = 4; - int result; - - /* act */ - result = is_Valid_tile(&board, tile, direction); - - /* assert */ - TEST_ASSERT_EQUAL_INT(0 + board.width, result);//not valid tile -} - -#endif // TEST \ No newline at end of file diff --git a/test/Minesweeper/test_number_of_bombs.c b/test/Minesweeper/test_number_of_bombs.c deleted file mode 100644 index 6a0dd4f..0000000 --- a/test/Minesweeper/test_number_of_bombs.c +++ /dev/null @@ -1,97 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include -#include "../../src/main/c/Minesweeper/minesweeper_start.h" - - -void setUp(void){} -void tearDown(void){} - - -void test_no_bombs_placed_around_tile(void){ - /* arrange */ - int result; - Minesweeper_Board board = initialize_minesweeper(); - int tile = 0 + board.width * 1; - - /* act */ - result = number_of_bombs(&board, tile); - - /* assert */ - TEST_ASSERT_EQUAL_INT(0, result);//no bombs placed -} - -void test_searching_for_bombs_on_correct_tiles(void){ - /* arrange */ - int result; - Minesweeper_Board board = initialize_minesweeper(); - int tile = 0 + board.width * 1; - board.bombs[0] = 0 + board.width * 3; - board.bombs[1] = 2 + board.width * 1; - board.bombs[2] = board.width - 1 + board.width * 1; - board.bombs[3] = 0 + board.width * (board.height - 1); - - /* act */ - result = number_of_bombs(&board, tile); - - /* assert */ - TEST_ASSERT_EQUAL_INT(0, result);//no bombs placed around tile -} - -void test_2_bombs_around_tile(void){ - /* arrange */ - int result; - Minesweeper_Board board = initialize_minesweeper(); - int tile = 0 + board.width * 1; - board.bombs[0] = 0 + board.width * 2; - board.bombs[1] = 1 + board.width * 1; - board.bombs[2] = board.width - 1 + board.width * 1; - board.bombs[3] = 0 + board.width * (board.height - 1); - - /* act */ - result = number_of_bombs(&board, tile); - - /* assert */ - TEST_ASSERT_EQUAL_INT(2, result);//2 bombs placed around tile -} - -void test_5_bombs_around_tile(void){ - /* arrange */ - int result; - Minesweeper_Board board = initialize_minesweeper(); - int tile = 1 + board.width * 0; - board.bombs[0] = 0 + board.width * 0; - board.bombs[1] = 2 + board.width * 0; - board.bombs[2] = 0 + board.width * 1; - board.bombs[3] = 1 + board.width * 1; - board.bombs[4] = 2 + board.width * 1; - - /* act */ - result = number_of_bombs(&board, tile); - - /* assert */ - TEST_ASSERT_EQUAL_INT(5, result);//5 bombs placed around tile -} - -void test_8_bombs_around_tile(void){ - /* arrange */ - int result; - Minesweeper_Board board = initialize_minesweeper(); - int tile = 7 + board.width * 7; - board.bombs[0] = 6 + board.width * 6; - board.bombs[1] = 7 + board.width * 6; - board.bombs[2] = 8 + board.width * 6; - board.bombs[3] = 6 + board.width * 7; - board.bombs[4] = 8 + board.width * 7; - board.bombs[5] = 6 + board.width * 8; - board.bombs[6] = 7 + board.width * 8; - board.bombs[7] = 8 + board.width * 8; - - /* act */ - result = number_of_bombs(&board, tile); - - /* assert */ - TEST_ASSERT_EQUAL_INT(8, result);//2 bombs placed around tile -} - -#endif // TEST \ No newline at end of file diff --git a/test/Pong/.gitkeep b/test/Pong/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/test/Pong/test_checkCollision.c b/test/Pong/test_checkCollision.c deleted file mode 100644 index 16be1ca..0000000 --- a/test/Pong/test_checkCollision.c +++ /dev/null @@ -1,63 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "pong.h" -#define WIDTH 40 //Breite Spielfeld -#define HEIGHT 20 //Höhe Spielfeld - -typedef struct { - int x; - int y; - int speedX; - int speedY; -} Ball; - -typedef struct { - int x; - int y; - int width; - int height; -} Paddle; - -void setUp(void){ - //Wenn Funktion Vorraussetzungen braucht -} - -void tearDown(void){ -} - -void test_checkCollision(void){ - Ball ball = {10, 10, 1, 1}; - Paddle paddle = {50, 10, 5, 10}; - - // Test Ball trifft rechte und linke Wand - ball.x = 0; - int result1 = checkCollision(ball, paddle.y, paddle.y); - TEST_ASSERT_EQUAL_INT(1, result1); - - ball.x = WIDTH - 1; - int result2 = checkCollision(ball, paddle.y, paddle.y); - TEST_ASSERT_EQUAL_INT(2, result2); - - // Test Ball trifft obere und untere Wand - ball.x = 5; - ball.y = 0; - int result3 = checkCollision(ball, paddle.y, paddle.y); - TEST_ASSERT_EQUAL_INT(0, result3); - - ball.y = HEIGHT - 1; - int result4 = checkCollision(ball, paddle.y, paddle.y); - TEST_ASSERT_EQUAL_INT(0, result4); - - // Test wenn Ball Paddle trifft - ball.x = paddle.x - 1; - ball.y = paddle.y + 1; - int result5 = checkCollision(ball, paddle.y, paddle.y); - TEST_ASSERT_EQUAL_INT(2, result5); - - ball.x = paddle.x + 1; - ball.y = paddle.y + 1; - int result6 = checkCollision(ball, paddle.y, paddle.y); - TEST_ASSERT_EQUAL_INT(2, result6); -} - -#endif // TEST diff --git a/test/Pong/test_checkGameEnd.c b/test/Pong/test_checkGameEnd.c deleted file mode 100644 index 4f9144d..0000000 --- a/test/Pong/test_checkGameEnd.c +++ /dev/null @@ -1,34 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "pong.h" - -// Prüfen Spiellogik für Beenden des Spiels - -void setUp(void){ - //Wenn Funktion Vorraussetzungen braucht -} - -void tearDown(void){ -} - -void test_checkGameEnd(void){ - /* arrange */ - int maxScore = 5; - int score1 = 4, score2 = 2; - - /* act */ - int result = checkGameEnd(score1, score2, maxScore); - - /* assert */ - TEST_ASSERT_EQUAL_INT(0, result); // Das Spiel sollte noch nicht enden - - /* Spieler 1 erreicht den Maximalscore */ - score1 = 5; - result = checkGameEnd(score1, score2, maxScore); - TEST_ASSERT_EQUAL_INT(1, result); // Das Spiel sollte enden, da Spieler 1 den Maximalscore erreicht hat - - /* Weitere Tests mit anderen Spiellogikfällen und Endspielbedingungen können hinzugefügt werden */ - -} - -#endif // TEST diff --git a/test/Pong/test_clearScreen.c b/test/Pong/test_clearScreen.c deleted file mode 100644 index f2701a1..0000000 --- a/test/Pong/test_clearScreen.c +++ /dev/null @@ -1,38 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "pong.h" - -#define TEST_SCREEN_WIDTH 40 -#define TEST_SCREEN_HEIGHT 20 - -char screen[TEST_SCREEN_HEIGHT][TEST_SCREEN_WIDTH+1]; - -void setUp(void){ - //Wenn Funktion Vorraussetzungen braucht -} - -void tearDown(void){ -} - -void test_clearScreen(void){ - /* arrange */ - int i, j; - for (i = 0; i < TEST_SCREEN_HEIGHT; i++) { - for (j = 0; j < TEST_SCREEN_WIDTH; j++) { - screen[i][j] = ' '; - } - screen[i][j] = '\0'; - } - - /* act */ - clearScreen(); - - /* assert */ - for (i = 0; i < TEST_SCREEN_HEIGHT; i++) { - for (j = 0; j < TEST_SCREEN_WIDTH; j++) { - TEST_ASSERT_EQUAL_INT(' ', screen[i][j]); - } - } -} - -#endif // TEST diff --git a/test/Pong/test_playerInputMovement.c b/test/Pong/test_playerInputMovement.c deleted file mode 100644 index e8ebbdd..0000000 --- a/test/Pong/test_playerInputMovement.c +++ /dev/null @@ -1,42 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "pong.h" - -typedef struct { - int x; - int y; - int speedX; - int speedY; -} Paddle; -// sicherstellen korrekte Funktion Steuerung für Schläger - -void setUp(void){ - //Wenn Funktion Vorraussetzungen braucht -} - -void tearDown(void){ -} - -void test_playerInputMovement(void){ - /* Test 1: Bewegung nach oben */ - int paddlePositionY = 10; - int userInput = -1; // Benutzereingabe für Bewegung nach oben - int expectedY = paddlePositionY - 1; - - processPlayerInput(&paddlePositionY, userInput); - TEST_ASSERT_EQUAL_INT(expectedY, paddlePositionY); - - /* Test 2: Bewegung nach unten */ - userInput = 1; - expectedY = paddlePositionY + 1; - // Benutzereingabe für Bewegung nach unten - - processPlayerInput(&paddlePositionY, userInput); - TEST_ASSERT_EQUAL_INT(expectedY, paddlePositionY); - - /* Weitere Tests mit anderen Bewegungsrichtungen und Grenzfällen können hinzugefügt werden */ - -} - - -#endif // TEST diff --git a/test/Pong/test_pong.c b/test/Pong/test_pong.c deleted file mode 100644 index 0b12481..0000000 --- a/test/Pong/test_pong.c +++ /dev/null @@ -1,27 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "pong.h" - - -void setUp(void){ - //Wenn Funktion Vorraussetzungen braucht -} -void tearDown(void){ -} - - -void test_input_all_5(void){ - /* arrange */ - int a = 4, b = 5; - - /* act */ - resetScore( &a, &b ); - - /* assert */ - TEST_ASSERT_EQUAL_INT(0, a); - TEST_ASSERT_EQUAL_INT(0, b); -} - - - -#endif // TEST diff --git a/test/Snake/test_collision.c b/test/Snake/test_collision.c deleted file mode 100644 index df400b0..0000000 --- a/test/Snake/test_collision.c +++ /dev/null @@ -1,50 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include -#include "snake_start.h" -#include "get_character.h" - - -void setUp(void){} -void tearDown(void){} - - -void test_self_collision(void){ - /* arrange */ - bool result; - Snake snake = {1, 5, {6 + 16 * 6, 6 + 16 * 7, 7 + 16 * 7, 7 + 16 * 6, 6 + 16 * 6}}; - - /* act */ - result = check_if_dead(&snake); - - /* assert */ - TEST_ASSERT_TRUE(result);//head collides with body -} - - -void test_no_collision(void){ - /* arrange */ - bool result; - Snake snake = initialize_snake(); - - /* act */ - result = check_if_dead(&snake); - - /* assert */ - TEST_ASSERT_FALSE(result);//head collides with body -} - - -void test_wall_collision(void){ - /* arrange */ - bool result; - Snake snake = {-1, 4, {0 + 16 * 6, 1 + 16 * 6, 2 + 16 * 6, 3 + 16 * 6}}; - - /* act */ - result = check_if_dead(&snake); - - /* assert */ - TEST_ASSERT_TRUE(result);//head collides with body -} - -#endif // TEST \ No newline at end of file diff --git a/test/Snake/test_moving_snake.c b/test/Snake/test_moving_snake.c deleted file mode 100644 index 115d55f..0000000 --- a/test/Snake/test_moving_snake.c +++ /dev/null @@ -1,69 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include -#include -#include "../../src/main/c/Snake/snake_start.h" -#include "../../src/main/c/Snake/get_character.h" - - -void setUp(void){} -void tearDown(void){} - - -void test_moving_right(void){ - /* arrange */ - bool result; - Snake snake = {1, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - Snake expected = {1, 3, {9 + 16 * 6, 8 + 16 * 6, 7 + 16 * 6}}; - - /* act */ - move_snake(&snake); - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - /* assert */ - TEST_ASSERT_TRUE(result); -} - -void test_moving_down(void){ - /* arrange */ - bool result; - Snake snake = {16, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - Snake expected = {16, 3, {8 + 16 * 7, 8 + 16 * 6, 7 + 16 * 6}}; - - /* act */ - move_snake(&snake); - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - /* assert */ - TEST_ASSERT_TRUE(result); -} - -void test_moving_left(void){ - /* arrange */ - bool result; - Snake snake = {-1, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - Snake expected = {-1, 3, {7 + 16 * 6, 8 + 16 * 6, 7 + 16 * 6}}; - - /* act */ - move_snake(&snake); - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - /* assert */ - TEST_ASSERT_TRUE(result); -} - -void test_moving_up(void){ - /* arrange */ - bool result; - Snake snake = {-16, 3, {8 + 16 * 6, 7 + 16 * 6, 6 + 16 * 6}}; - Snake expected = {-16, 3, {8 + 16 * 5, 8 + 16 * 6, 7 + 16 * 6}}; - - /* act */ - move_snake(&snake); - result = memcmp(&snake, &expected, sizeof(Snake)) == 0; - - /* assert */ - TEST_ASSERT_TRUE(result); -} - -#endif // TEST \ No newline at end of file diff --git a/test/Snake/test_part_of_snake.c b/test/Snake/test_part_of_snake.c deleted file mode 100644 index 95ce3bd..0000000 --- a/test/Snake/test_part_of_snake.c +++ /dev/null @@ -1,49 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "../../src/main/c/Snake/snake_start.h" -#include "../../src/main/c/Snake/get_character.h" - - -void setUp(void){} -void tearDown(void){} - - -void test_find_head(void){ - /* arrange */ - int result; - Snake snake = initialize_snake(); - - /* act */ - result = part_of_snake(&snake, 8 * 16 + 8); - - /* assert */ - TEST_ASSERT_EQUAL_INT(0, result);//head is at 8/8 -} - - -void test_get_correct_index(void){ - /* arrange */ - int result; - Snake snake = initialize_snake(); - - /* act */ - result = part_of_snake(&snake, 8 * 16 + 6); - - /* assert */ - TEST_ASSERT_EQUAL_INT(2, result);//2. part ist at 6/8 -} - - -void test_snake_not_on_tile(void){ - /* arrange */ - int result; - Snake snake = initialize_snake(); - - /* act */ - result = part_of_snake(&snake, 6 * 16 + 6); - - /* assert */ - TEST_ASSERT_EQUAL_INT(-1, result);//-1 snake is not on 6/6 -} - -#endif // TEST \ No newline at end of file diff --git a/test/test_battleship.c b/test/test_battleship.c deleted file mode 100644 index 56d6aa3..0000000 --- a/test/test_battleship.c +++ /dev/null @@ -1,43 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "battleship_game.h" - - -void setUp(void){ - -} -void tearDown(void){ -} - - -void test_convertcoor(void) { - - int output; - - - output = convertcoor('b', 5); - - - TEST_ASSERT_EQUAL_INT(14, output); -} - -void setUp(void){ - -} -void tearDown(void){ -} - - -void test_convertcoor(void) { - - int output; - - - output = convertcoor('F', 6); - - - TEST_ASSERT_EQUAL_INT(55, output); -} - -#endif - diff --git a/test/test_template.c b/test/test_template.c deleted file mode 100644 index 4aba361..0000000 --- a/test/test_template.c +++ /dev/null @@ -1,36 +0,0 @@ -#ifdef TEST -#include "unity.h" -#include "game100.h" - - -void setUp(void){ - //Wenn Funktion Vorraussetzungen braucht -} -void tearDown(void){ -} - - -void test_input_all_5(void){ - /* arrange */ - int result; - - /* act */ - result = some_function(5, 5); - - /* assert */ - TEST_ASSERT_EQUAL_INT(6, result);//5 / 5 + 5 = 6 -} - - -void test_ignore_rest_from_division(void){ - /* arrange */ - int result; - - /* act */ - result = some_function(5, 6); - - /* assert */ - TEST_ASSERT_EQUAL_INT(5, result);//5 / 6 + 5 = 5 -} - -#endif // TEST diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c deleted file mode 100644 index 887aad7..0000000 --- a/test/test_tictactoe.c +++ /dev/null @@ -1,88 +0,0 @@ - -#ifdef TEST -#include "unity.h" -#include "tictactoe.h" - - -void setUp(void){ - //Wenn Funktion Vorraussetzungen braucht -} -void tearDown(void){ - reset_board(); - displayBoard(); -} - - -void test_if_not_identical(void){ - /* arrange */ - char result; - char a = 'a', b = 'b', c = 'c'; - - result = checkLine(a, b, c); - - /* assert */ - TEST_ASSERT_EQUAL_CHAR(' ', result); -} - - -void test_if_identical(void){ - /* arrange */ - char result; - char a = 'a', b = 'a', c = 'a'; - - result = checkLine(a, b, c); - - /* assert */ - TEST_ASSERT_EQUAL_CHAR(a, result); -} - -void test_isValidMove_gueltigerZug(void) { - /* arrangieren */ - int result; - int choice = 5; - - /* handeln */ - result = isValidMove(choice); - - /* überprüfen */ - TEST_ASSERT_EQUAL_INT(1, result); -} - - -void test_checkWinner_vertikalerGewinner(void) { - /* arrangieren */ - char result; - - // Setze die Daten für einen vertikalen Gewinne - makeMove(1); - makeMove(2); - makeMove(4); - makeMove(3); - makeMove(7); - - /* handeln */ - result = checkWinner(); - - /* überprüfen */ - TEST_ASSERT_EQUAL_CHAR('O', result); -} - -void test_checkWinner_horizontalerGewinner(void) { - /* arrangieren */ - char result; - - //makeMove(1); - //makeMove(4); - //makeMove(2); - //makeMove(5); - //makeMove(3); - - /* handeln */ - result = checkWinner(); - - /* überprüfen */ - TEST_ASSERT_EQUAL_CHAR('X', result); - reset_board(); -} - -#endif // TEST