diff --git a/build/test/cache/defines_dependency.yml b/build/test/cache/defines_dependency.yml deleted file mode 100644 index 5ac0361..0000000 --- a/build/test/cache/defines_dependency.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -src/MatheSpiele.c: -- TEST -src/SchereSteinPapier.c: -- TEST -src/WortSpiel.c: -- TEST -src/ageinseconds.c: -- TEST -src/bmi.c: -- TEST -src/minirechner.c: -- TEST -src/temperatur.c: -- TEST -src/zahlenraten.c: -- TEST diff --git a/build/test/cache/input.yml b/build/test/cache/input.yml deleted file mode 100644 index dcb9748..0000000 --- a/build/test/cache/input.yml +++ /dev/null @@ -1,278 +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: [] - :output: theluckyaliens -: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: - - m -: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: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor - :defines: [] -:cmock: - :vendor_path: C:/Ruby30-x64/lib/ruby/gems/3.0.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: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor - :defines: [] -:test_runner: - :includes: [] - :file_suffix: _runner -:tools: - :test_compiler: - :executable: gcc.exe - :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.exe - :name: default_test_linker - :stderr_redirect: :none - :background_exec: :none - :optional: false - :arguments: - - '' - - '' - - '' - - '"${1}"' - - "${5}" - - -o "${2}" - - '' - - "${4}" - - '' - :test_file_preprocessor: - :executable: gcc.exe - :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.exe - :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.exe - :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.exe - :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.exe - :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: - - C:/Ruby30-x64/lib/ruby/gems/3.0.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: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/../plugins/stdout_pretty_tests_report - :module_generator_path: C:/Ruby30-x64/lib/ruby/gems/3.0.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/test/cache/test_MatheSpiele.c b/build/test/cache/test_MatheSpiele.c deleted file mode 100644 index 463e47c..0000000 --- a/build/test/cache/test_MatheSpiele.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "src/MatheSpiele.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue(void) { - - int result = convertToDogYears(3); - - UnityAssertEqualNumber((UNITY_INT)((24)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(17), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_SchereSteinPapier.c b/build/test/cache/test_SchereSteinPapier.c deleted file mode 100644 index fa6927c..0000000 --- a/build/test/cache/test_SchereSteinPapier.c +++ /dev/null @@ -1,99 +0,0 @@ -#include "src/SchereSteinPapier.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_Scheresteinpapier_generateRandom(void) { - - - - srand(42); - - - - for (int i = 0; i < 100; ++i) { - - int result = generateRandom(); - - do {if ((result >= 0 && result <= 2)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(21)));}} while(0); - - } - -} - - - -void test_Scheresteinpapier_determineWinner(void) { - - - - for (int spieler = 0; spieler <= 2; ++spieler) { - - for (int computer = 0; computer <= 2; ++computer) { - - int result = determineWinner(spieler, computer); - - - - - - if ((spieler == 0 && computer == 2) || - - (spieler == 1 && computer == 0) || - - (spieler == 2 && computer == 1)) { - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - - } - - else if (spieler == computer) { - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(38), UNITY_DISPLAY_STYLE_INT); - - } - - else { - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(41), UNITY_DISPLAY_STYLE_INT); - - } - - } - - } - -} diff --git a/build/test/cache/test_WortSpiel.c b/build/test/cache/test_WortSpiel.c deleted file mode 100644 index 5389a8d..0000000 --- a/build/test/cache/test_WortSpiel.c +++ /dev/null @@ -1,223 +0,0 @@ -#include "src/WortSpiel.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void testLoescheBuchstaben_Buchstabeexistiert(void) { - - - - char wort1[] = "Beispiel"; - - loescheBuchstaben(wort1, 'i'); - - UnityAssertEqualString((const char*)(("Bespel")), (const char*)((wort1)), ( - - ((void *)0) - - ), (UNITY_UINT)(19)); - -} - - - -void testLoescheBuchstaben_Buchstabeexistiertnicht(void) { - - char wort2[] = "Test"; - - loescheBuchstaben(wort2, 'z'); - - UnityAssertEqualString((const char*)(("Test")), (const char*)((wort2)), ( - - ((void *)0) - - ), (UNITY_UINT)(25)); - -} - - - -void testLoescheBuchstaben_Leereswort(void) { - - char wort3[] = ""; - - loescheBuchstaben(wort3, 'a'); - - UnityAssertEqualString((const char*)(("")), (const char*)((wort3)), ( - - ((void *)0) - - ), (UNITY_UINT)(31)); - -} - - - -void testZaehleBuchstaben_Buchstabenexistiert(void) { - - - - char wort1[] = "Beispiel"; - - int anzahl1 = zaehleBuchstaben(wort1, 'i'); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((anzahl1)), ( - - ((void *)0) - - ), (UNITY_UINT)(38), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testZaehleBuchstaben_Buchstabenexistiertnicht(void) { - - char wort2[] = "Test"; - - int anzahl2 = zaehleBuchstaben(wort2, 'z'); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((anzahl2)), ( - - ((void *)0) - - ), (UNITY_UINT)(44), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testZaehleBuchstaben_Leereswort(void) { - - char wort2[] = "Test"; - - int anzahl2 = zaehleBuchstaben(wort2, 'z'); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((anzahl2)), ( - - ((void *)0) - - ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testUmdrehenWort_normalesWort(void) { - - - - char wort1[] = "Hello"; - - umdrehenWort(wort1); - - UnityAssertEqualString((const char*)(("olleH")), (const char*)((wort1)), ( - - ((void *)0) - - ), (UNITY_UINT)(57)); - -} - - - -void testUmdrehenWort_leeresWort(void) { - - char wort2[] = ""; - - umdrehenWort(wort2); - - UnityAssertEqualString((const char*)(("")), (const char*)((wort2)), ( - - ((void *)0) - - ), (UNITY_UINT)(63)); - -} - - - -void testUmdrehenWort_einBuchstabe(void) { - - char wort3[] = "A"; - - umdrehenWort(wort3); - - UnityAssertEqualString((const char*)(("A")), (const char*)((wort3)), ( - - ((void *)0) - - ), (UNITY_UINT)(69)); - -} - - - -void testSucheBuchstabe_existiert(void) { - - char wort1[] = "Programming"; - - int position = sucheBuchstabe(wort1, 'g'); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((position)), ( - - ((void *)0) - - ), (UNITY_UINT)(75), UNITY_DISPLAY_STYLE_INT); - - - -} - - - -void testSucheBuchstabe_existiertnicht(void) { - - char wort2[] = "Testing"; - - int position = sucheBuchstabe(wort2, 'z'); - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((position)), ( - - ((void *)0) - - ), (UNITY_UINT)(82), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testSucheBuchstabe_leeresWort(void) { - - char wort3[] = ""; - - int position = sucheBuchstabe(wort3, 'a'); - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((position)), ( - - ((void *)0) - - ), (UNITY_UINT)(88), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_ageinseconds.c b/build/test/cache/test_ageinseconds.c deleted file mode 100644 index 3aadcbf..0000000 --- a/build/test/cache/test_ageinseconds.c +++ /dev/null @@ -1,77 +0,0 @@ -#include "src/ageinseconds.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - - - -void test_ageinseconds_45_in_sekunden(void) - -{ - - float result = sekunden(45); - - UnityAssertEqualNumber((UNITY_INT)((1419120000)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_ageinseconds_23_in_minuten(void) - -{ - - float result = minuten(23); - - UnityAssertEqualNumber((UNITY_INT)((12088800)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_ageinseconds_34_in_stunden(void) - -{ - - float result = stunden(34); - - UnityAssertEqualNumber((UNITY_INT)((297840)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_bmi.c b/build/test/cache/test_bmi.c deleted file mode 100644 index 7b4baff..0000000 --- a/build/test/cache/test_bmi.c +++ /dev/null @@ -1,59 +0,0 @@ -#include "src/bmi.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_berechnung_BMI(void) - -{ - -float result = calcBMI(2, 100); - -float expected = 25; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_ausgabe_ergebnis(void) - -{ - -const char *result = retResult(25); - -char expected[] = "Normalgewicht"; - -UnityAssertEqualString((const char*)((expected)), (const char*)((result)), ( - -((void *)0) - -), (UNITY_UINT)(26)); - -} diff --git a/build/test/cache/test_minirechner.c b/build/test/cache/test_minirechner.c deleted file mode 100644 index bfd4d20..0000000 --- a/build/test/cache/test_minirechner.c +++ /dev/null @@ -1,325 +0,0 @@ -#include "src/minirechner.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - - - -void test_minitaschenrechner_3_plus_4(void) - -{ - - float result = addieren(3, 4); - - UnityAssertEqualNumber((UNITY_INT)((7)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_float_plus_float(void) - -{ - - float result = addieren(3.1, 4.2); - - UnityAssertEqualNumber((UNITY_INT)((7.3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(25), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus1_plus_minus3(void) - -{ - - float result = addieren(-1, -3); - - UnityAssertEqualNumber((UNITY_INT)((-4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(31), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_0_plus_2(void) - -{ - - float result = addieren(0, 2); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(37), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_5_minus_2(void) - -{ - - float result = subtrahieren(5, 2); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(44), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_float_minus_float(void) - -{ - - float result = subtrahieren(2.7, 1.3); - - UnityAssertEqualNumber((UNITY_INT)((1.4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus7_minus_minus3(void) - -{ - - float result = subtrahieren(-7, -3); - - UnityAssertEqualNumber((UNITY_INT)((-4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(56), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_4_minus_0(void) - -{ - - float result = subtrahieren(4, 0); - - UnityAssertEqualNumber((UNITY_INT)((4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(62), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_8_mal_3(void) - -{ - - float result = multiplizieren(8, 3); - - UnityAssertEqualNumber((UNITY_INT)((24)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(69), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus3_mal_minus4(void) - -{ - - float result = multiplizieren(-3, -4); - - UnityAssertEqualNumber((UNITY_INT)((12)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(75), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_0_mal_5(void) - -{ - - float result = multiplizieren(0, 5); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(81), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_9_durch_3(void) - -{ - - float result = dividieren(9, 3); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(88), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus6_durch_minus2(void) - -{ - - float result = dividieren(-6, -2); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(94), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_0_durch_5(void) - -{ - - float result = dividieren(0, 5); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(100), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_14_rest_5(void) - -{ - - float result = rest(14, 5); - - UnityAssertEqualNumber((UNITY_INT)((4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(107), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_1_rest_7(void) - -{ - - float result = rest(0, 7); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(113), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_120_groesster_gemeinsammer_teiler_30(void) - -{ - - float result = groesster_gemeinsammer_teiler(120, 30); - - UnityAssertEqualNumber((UNITY_INT)((30)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(120), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_120_kleinstes_gemeinsammes_vielfaches_50(void) - -{ - - float result = kleinstes_gemeinsammes_vielfaches(120, 50); - - UnityAssertEqualNumber((UNITY_INT)((600)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(127), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/cache/test_temperatur.c b/build/test/cache/test_temperatur.c deleted file mode 100644 index e4db9e2..0000000 --- a/build/test/cache/test_temperatur.c +++ /dev/null @@ -1,163 +0,0 @@ -#include "src/temperatur.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_temperaturRechner_CzuF(void) - -{ - -float result = CzuF(25); - -float expected = 77; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_temperaturRechner_CzuK(void) - -{ - -float result = CzuK(25); - -float expected = 298.15; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_temperaturRechner_FzuC(void) - -{ - -float result = FzuC(77); - -float expected = 25; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(34), UNITY_DISPLAY_STYLE_INT); - -} - -void test_temperaturRechner_FzuK(void) - -{ - -float result = FzuK(77); - -float expected = 298.15; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(40), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_temperaturRechner_KzuC(void) - -{ - -float result = KzuC(298.15); - -float expected = 25; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(47), UNITY_DISPLAY_STYLE_INT); - -} - -void test_temperaturRechner_KzuF(void) - -{ - -float result = KzuF(298.15); - -float expected = 77; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(53), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_returnUnit_first(void) - -{ - -const char *result = getFirstUnit(1); - -char expected[] = "Celsius"; - -UnityAssertEqualString((const char*)((expected)), (const char*)((result)), ( - -((void *)0) - -), (UNITY_UINT)(60)); - -} - -void test_returnUnit_second(void) - -{ - -const char *result = getSecondUnit(2); - -char expected[] = " Kelvin"; - -UnityAssertEqualString((const char*)((expected)), (const char*)((result)), ( - -((void *)0) - -), (UNITY_UINT)(66)); - -} diff --git a/build/test/cache/test_zahlenraten.c b/build/test/cache/test_zahlenraten.c deleted file mode 100644 index 91996af..0000000 --- a/build/test/cache/test_zahlenraten.c +++ /dev/null @@ -1,45 +0,0 @@ -#include "src/zahlenraten.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_zahlenraten_gib_zufallszahl(void) - -{ - - int result = gib_zufallszahl(); - - UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), UNITY_GREATER_THAN, ( - - ((void *)0) - - ), (UNITY_UINT)(18), UNITY_DISPLAY_STYLE_INT); - - UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)((101)), (UNITY_INT)((result)), UNITY_SMALLER_THAN, ( - - ((void *)0) - - ), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/dependencies/MatheSpiele.d b/build/test/dependencies/MatheSpiele.d deleted file mode 100644 index 30fd0e8..0000000 --- a/build/test/dependencies/MatheSpiele.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/MatheSpiele.o: src/MatheSpiele.c src/MatheSpiele.h diff --git a/build/test/dependencies/SchereSteinPapier.d b/build/test/dependencies/SchereSteinPapier.d deleted file mode 100644 index 83e9bd7..0000000 --- a/build/test/dependencies/SchereSteinPapier.d +++ /dev/null @@ -1,2 +0,0 @@ -build/test/out/c/SchereSteinPapier.o: src/SchereSteinPapier.c \ - src/SchereSteinPapier.h diff --git a/build/test/dependencies/WortSpiel.d b/build/test/dependencies/WortSpiel.d deleted file mode 100644 index 08b6a08..0000000 --- a/build/test/dependencies/WortSpiel.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/WortSpiel.o: src/WortSpiel.c src/WortSpiel.h diff --git a/build/test/dependencies/ageinseconds.d b/build/test/dependencies/ageinseconds.d deleted file mode 100644 index 6ae928f..0000000 --- a/build/test/dependencies/ageinseconds.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/ageinseconds.o: src/ageinseconds.c src/ageinseconds.h diff --git a/build/test/dependencies/bmi.d b/build/test/dependencies/bmi.d deleted file mode 100644 index 80d9078..0000000 --- a/build/test/dependencies/bmi.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/bmi.o: src/bmi.c src/bmi.h diff --git a/build/test/dependencies/cmock.d b/build/test/dependencies/cmock.d deleted file mode 100644 index bdf4cc9..0000000 --- a/build/test/dependencies/cmock.d +++ /dev/null @@ -1,6 +0,0 @@ -build/test/out/c/cmock.o: \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock_internals.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/minirechner.d b/build/test/dependencies/minirechner.d deleted file mode 100644 index ac14042..0000000 --- a/build/test/dependencies/minirechner.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/minirechner.o: src/minirechner.c src/minirechner.h diff --git a/build/test/dependencies/temperatur.d b/build/test/dependencies/temperatur.d deleted file mode 100644 index 6296cfe..0000000 --- a/build/test/dependencies/temperatur.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/temperatur.o: src/temperatur.c src/temperatur.h diff --git a/build/test/dependencies/test_MatheSpiele.d b/build/test/dependencies/test_MatheSpiele.d deleted file mode 100644 index 3f0067f..0000000 --- a/build/test/dependencies/test_MatheSpiele.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_MatheSpiele.o: test/test_MatheSpiele.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/MatheSpiele.h diff --git a/build/test/dependencies/test_MatheSpiele_runner.d b/build/test/dependencies/test_MatheSpiele_runner.d deleted file mode 100644 index cea6a5f..0000000 --- a/build/test/dependencies/test_MatheSpiele_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_MatheSpiele_runner.o: \ - build/test/runners/test_MatheSpiele_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_SchereSteinPapier.d b/build/test/dependencies/test_SchereSteinPapier.d deleted file mode 100644 index f88fdf7..0000000 --- a/build/test/dependencies/test_SchereSteinPapier.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_SchereSteinPapier.o: test/test_SchereSteinPapier.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/SchereSteinPapier.h diff --git a/build/test/dependencies/test_SchereSteinPapier_runner.d b/build/test/dependencies/test_SchereSteinPapier_runner.d deleted file mode 100644 index 623b8b2..0000000 --- a/build/test/dependencies/test_SchereSteinPapier_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_SchereSteinPapier_runner.o: \ - build/test/runners/test_SchereSteinPapier_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_WortSpiel.d b/build/test/dependencies/test_WortSpiel.d deleted file mode 100644 index 2db99e5..0000000 --- a/build/test/dependencies/test_WortSpiel.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_WortSpiel.o: test/test_WortSpiel.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/WortSpiel.h diff --git a/build/test/dependencies/test_WortSpiel_runner.d b/build/test/dependencies/test_WortSpiel_runner.d deleted file mode 100644 index b41d36c..0000000 --- a/build/test/dependencies/test_WortSpiel_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_WortSpiel_runner.o: \ - build/test/runners/test_WortSpiel_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_ageinseconds.d b/build/test/dependencies/test_ageinseconds.d deleted file mode 100644 index df78c5a..0000000 --- a/build/test/dependencies/test_ageinseconds.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_ageinseconds.o: test/test_ageinseconds.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/ageinseconds.h diff --git a/build/test/dependencies/test_ageinseconds_runner.d b/build/test/dependencies/test_ageinseconds_runner.d deleted file mode 100644 index a126138..0000000 --- a/build/test/dependencies/test_ageinseconds_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_ageinseconds_runner.o: \ - build/test/runners/test_ageinseconds_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_bmi.d b/build/test/dependencies/test_bmi.d deleted file mode 100644 index 9d3326f..0000000 --- a/build/test/dependencies/test_bmi.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_bmi.o: test/test_bmi.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/bmi.h diff --git a/build/test/dependencies/test_bmi_runner.d b/build/test/dependencies/test_bmi_runner.d deleted file mode 100644 index ccaa851..0000000 --- a/build/test/dependencies/test_bmi_runner.d +++ /dev/null @@ -1,3 +0,0 @@ -build/test/out/c/test_bmi_runner.o: build/test/runners/test_bmi_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_minirechner.d b/build/test/dependencies/test_minirechner.d deleted file mode 100644 index 57cc195..0000000 --- a/build/test/dependencies/test_minirechner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_minirechner.o: test/test_minirechner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/minirechner.h diff --git a/build/test/dependencies/test_minirechner_runner.d b/build/test/dependencies/test_minirechner_runner.d deleted file mode 100644 index c85cb96..0000000 --- a/build/test/dependencies/test_minirechner_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_minirechner_runner.o: \ - build/test/runners/test_minirechner_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_temperatur.d b/build/test/dependencies/test_temperatur.d deleted file mode 100644 index ec6ff76..0000000 --- a/build/test/dependencies/test_temperatur.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_temperatur.o: test/test_temperatur.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/temperatur.h diff --git a/build/test/dependencies/test_temperatur_runner.d b/build/test/dependencies/test_temperatur_runner.d deleted file mode 100644 index ada394d..0000000 --- a/build/test/dependencies/test_temperatur_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_temperatur_runner.o: \ - build/test/runners/test_temperatur_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_zahlenraten.d b/build/test/dependencies/test_zahlenraten.d deleted file mode 100644 index 0e8ebfc..0000000 --- a/build/test/dependencies/test_zahlenraten.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_zahlenraten.o: test/test_zahlenraten.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/zahlenraten.h diff --git a/build/test/dependencies/test_zahlenraten_runner.d b/build/test/dependencies/test_zahlenraten_runner.d deleted file mode 100644 index 6186b44..0000000 --- a/build/test/dependencies/test_zahlenraten_runner.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/test_zahlenraten_runner.o: \ - build/test/runners/test_zahlenraten_runner.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.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 deleted file mode 100644 index 0baf56c..0000000 --- a/build/test/dependencies/unity.d +++ /dev/null @@ -1,4 +0,0 @@ -build/test/out/c/unity.o: \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.c \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/zahlenraten.d b/build/test/dependencies/zahlenraten.d deleted file mode 100644 index cff70af..0000000 --- a/build/test/dependencies/zahlenraten.d +++ /dev/null @@ -1 +0,0 @@ -build/test/out/c/zahlenraten.o: src/zahlenraten.c diff --git a/build/test/out/c/MatheSpiele.o b/build/test/out/c/MatheSpiele.o deleted file mode 100644 index 059d0bc..0000000 Binary files a/build/test/out/c/MatheSpiele.o and /dev/null differ diff --git a/build/test/out/c/SchereSteinPapier.o b/build/test/out/c/SchereSteinPapier.o deleted file mode 100644 index 36b02df..0000000 Binary files a/build/test/out/c/SchereSteinPapier.o and /dev/null differ diff --git a/build/test/out/c/WortSpiel.o b/build/test/out/c/WortSpiel.o deleted file mode 100644 index 478c4a4..0000000 Binary files a/build/test/out/c/WortSpiel.o and /dev/null differ diff --git a/build/test/out/c/ageinseconds.o b/build/test/out/c/ageinseconds.o deleted file mode 100644 index ed909e4..0000000 Binary files a/build/test/out/c/ageinseconds.o and /dev/null differ diff --git a/build/test/out/c/bmi.o b/build/test/out/c/bmi.o deleted file mode 100644 index 8e365c6..0000000 Binary files a/build/test/out/c/bmi.o and /dev/null differ diff --git a/build/test/out/c/cmock.o b/build/test/out/c/cmock.o deleted file mode 100644 index 5e8344b..0000000 Binary files a/build/test/out/c/cmock.o and /dev/null differ diff --git a/build/test/out/c/minirechner.o b/build/test/out/c/minirechner.o deleted file mode 100644 index 337088b..0000000 Binary files a/build/test/out/c/minirechner.o and /dev/null differ diff --git a/build/test/out/c/temperatur.o b/build/test/out/c/temperatur.o deleted file mode 100644 index 3eb10dc..0000000 Binary files a/build/test/out/c/temperatur.o and /dev/null differ diff --git a/build/test/out/c/test_MatheSpiele.o b/build/test/out/c/test_MatheSpiele.o deleted file mode 100644 index 93d617e..0000000 Binary files a/build/test/out/c/test_MatheSpiele.o and /dev/null differ diff --git a/build/test/out/c/test_MatheSpiele_runner.o b/build/test/out/c/test_MatheSpiele_runner.o deleted file mode 100644 index e84a8ec..0000000 Binary files a/build/test/out/c/test_MatheSpiele_runner.o and /dev/null differ diff --git a/build/test/out/c/test_SchereSteinPapier.o b/build/test/out/c/test_SchereSteinPapier.o deleted file mode 100644 index 01d8774..0000000 Binary files a/build/test/out/c/test_SchereSteinPapier.o and /dev/null differ diff --git a/build/test/out/c/test_SchereSteinPapier_runner.o b/build/test/out/c/test_SchereSteinPapier_runner.o deleted file mode 100644 index c5ad3b3..0000000 Binary files a/build/test/out/c/test_SchereSteinPapier_runner.o and /dev/null differ diff --git a/build/test/out/c/test_WortSpiel.o b/build/test/out/c/test_WortSpiel.o deleted file mode 100644 index e2ba759..0000000 Binary files a/build/test/out/c/test_WortSpiel.o and /dev/null differ diff --git a/build/test/out/c/test_WortSpiel_runner.o b/build/test/out/c/test_WortSpiel_runner.o deleted file mode 100644 index 582c68b..0000000 Binary files a/build/test/out/c/test_WortSpiel_runner.o and /dev/null differ diff --git a/build/test/out/c/test_ageinseconds.o b/build/test/out/c/test_ageinseconds.o deleted file mode 100644 index d938bbf..0000000 Binary files a/build/test/out/c/test_ageinseconds.o and /dev/null differ diff --git a/build/test/out/c/test_ageinseconds_runner.o b/build/test/out/c/test_ageinseconds_runner.o deleted file mode 100644 index 5786edf..0000000 Binary files a/build/test/out/c/test_ageinseconds_runner.o and /dev/null differ diff --git a/build/test/out/c/test_bmi.o b/build/test/out/c/test_bmi.o deleted file mode 100644 index fa6516c..0000000 Binary files a/build/test/out/c/test_bmi.o and /dev/null differ diff --git a/build/test/out/c/test_bmi_runner.o b/build/test/out/c/test_bmi_runner.o deleted file mode 100644 index ab00101..0000000 Binary files a/build/test/out/c/test_bmi_runner.o and /dev/null differ diff --git a/build/test/out/c/test_minirechner.o b/build/test/out/c/test_minirechner.o deleted file mode 100644 index 0b763a7..0000000 Binary files a/build/test/out/c/test_minirechner.o and /dev/null differ diff --git a/build/test/out/c/test_minirechner_runner.o b/build/test/out/c/test_minirechner_runner.o deleted file mode 100644 index 1e1eef0..0000000 Binary files a/build/test/out/c/test_minirechner_runner.o and /dev/null differ diff --git a/build/test/out/c/test_temperatur.o b/build/test/out/c/test_temperatur.o deleted file mode 100644 index 8648581..0000000 Binary files a/build/test/out/c/test_temperatur.o and /dev/null differ diff --git a/build/test/out/c/test_temperatur_runner.o b/build/test/out/c/test_temperatur_runner.o deleted file mode 100644 index 3462133..0000000 Binary files a/build/test/out/c/test_temperatur_runner.o and /dev/null differ diff --git a/build/test/out/c/test_zahlenraten.o b/build/test/out/c/test_zahlenraten.o deleted file mode 100644 index 4ba1eaa..0000000 Binary files a/build/test/out/c/test_zahlenraten.o and /dev/null differ diff --git a/build/test/out/c/test_zahlenraten_runner.o b/build/test/out/c/test_zahlenraten_runner.o deleted file mode 100644 index 71f17a2..0000000 Binary files a/build/test/out/c/test_zahlenraten_runner.o and /dev/null differ diff --git a/build/test/out/c/unity.o b/build/test/out/c/unity.o deleted file mode 100644 index df16771..0000000 Binary files a/build/test/out/c/unity.o and /dev/null differ diff --git a/build/test/out/c/zahlenraten.o b/build/test/out/c/zahlenraten.o deleted file mode 100644 index eb17ae1..0000000 Binary files a/build/test/out/c/zahlenraten.o and /dev/null differ diff --git a/build/test/out/test_MatheSpiele.out b/build/test/out/test_MatheSpiele.out deleted file mode 100644 index 2dc6314..0000000 Binary files a/build/test/out/test_MatheSpiele.out and /dev/null differ diff --git a/build/test/out/test_SchereSteinPapier.out b/build/test/out/test_SchereSteinPapier.out deleted file mode 100644 index d69a7a8..0000000 Binary files a/build/test/out/test_SchereSteinPapier.out and /dev/null differ diff --git a/build/test/out/test_WortSpiel.out b/build/test/out/test_WortSpiel.out deleted file mode 100644 index 16b3de6..0000000 Binary files a/build/test/out/test_WortSpiel.out and /dev/null differ diff --git a/build/test/out/test_ageinseconds.out b/build/test/out/test_ageinseconds.out deleted file mode 100644 index 158cf87..0000000 Binary files a/build/test/out/test_ageinseconds.out and /dev/null differ diff --git a/build/test/out/test_bmi.out b/build/test/out/test_bmi.out deleted file mode 100644 index 50b9fd6..0000000 Binary files a/build/test/out/test_bmi.out and /dev/null differ diff --git a/build/test/out/test_minirechner.out b/build/test/out/test_minirechner.out deleted file mode 100644 index fde2243..0000000 Binary files a/build/test/out/test_minirechner.out and /dev/null differ diff --git a/build/test/out/test_temperatur.out b/build/test/out/test_temperatur.out deleted file mode 100644 index 6add27e..0000000 Binary files a/build/test/out/test_temperatur.out and /dev/null differ diff --git a/build/test/out/test_zahlenraten.out b/build/test/out/test_zahlenraten.out deleted file mode 100644 index ac6d223..0000000 Binary files a/build/test/out/test_zahlenraten.out and /dev/null differ diff --git a/build/test/preprocess/files/test_MatheSpiele.c b/build/test/preprocess/files/test_MatheSpiele.c deleted file mode 100644 index 463e47c..0000000 --- a/build/test/preprocess/files/test_MatheSpiele.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "src/MatheSpiele.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue(void) { - - int result = convertToDogYears(3); - - UnityAssertEqualNumber((UNITY_INT)((24)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(17), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_SchereSteinPapier.c b/build/test/preprocess/files/test_SchereSteinPapier.c deleted file mode 100644 index fa6927c..0000000 --- a/build/test/preprocess/files/test_SchereSteinPapier.c +++ /dev/null @@ -1,99 +0,0 @@ -#include "src/SchereSteinPapier.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_Scheresteinpapier_generateRandom(void) { - - - - srand(42); - - - - for (int i = 0; i < 100; ++i) { - - int result = generateRandom(); - - do {if ((result >= 0 && result <= 2)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(21)));}} while(0); - - } - -} - - - -void test_Scheresteinpapier_determineWinner(void) { - - - - for (int spieler = 0; spieler <= 2; ++spieler) { - - for (int computer = 0; computer <= 2; ++computer) { - - int result = determineWinner(spieler, computer); - - - - - - if ((spieler == 0 && computer == 2) || - - (spieler == 1 && computer == 0) || - - (spieler == 2 && computer == 1)) { - - UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(35), UNITY_DISPLAY_STYLE_INT); - - } - - else if (spieler == computer) { - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(38), UNITY_DISPLAY_STYLE_INT); - - } - - else { - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(41), UNITY_DISPLAY_STYLE_INT); - - } - - } - - } - -} diff --git a/build/test/preprocess/files/test_WortSpiel.c b/build/test/preprocess/files/test_WortSpiel.c deleted file mode 100644 index 5389a8d..0000000 --- a/build/test/preprocess/files/test_WortSpiel.c +++ /dev/null @@ -1,223 +0,0 @@ -#include "src/WortSpiel.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void testLoescheBuchstaben_Buchstabeexistiert(void) { - - - - char wort1[] = "Beispiel"; - - loescheBuchstaben(wort1, 'i'); - - UnityAssertEqualString((const char*)(("Bespel")), (const char*)((wort1)), ( - - ((void *)0) - - ), (UNITY_UINT)(19)); - -} - - - -void testLoescheBuchstaben_Buchstabeexistiertnicht(void) { - - char wort2[] = "Test"; - - loescheBuchstaben(wort2, 'z'); - - UnityAssertEqualString((const char*)(("Test")), (const char*)((wort2)), ( - - ((void *)0) - - ), (UNITY_UINT)(25)); - -} - - - -void testLoescheBuchstaben_Leereswort(void) { - - char wort3[] = ""; - - loescheBuchstaben(wort3, 'a'); - - UnityAssertEqualString((const char*)(("")), (const char*)((wort3)), ( - - ((void *)0) - - ), (UNITY_UINT)(31)); - -} - - - -void testZaehleBuchstaben_Buchstabenexistiert(void) { - - - - char wort1[] = "Beispiel"; - - int anzahl1 = zaehleBuchstaben(wort1, 'i'); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((anzahl1)), ( - - ((void *)0) - - ), (UNITY_UINT)(38), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testZaehleBuchstaben_Buchstabenexistiertnicht(void) { - - char wort2[] = "Test"; - - int anzahl2 = zaehleBuchstaben(wort2, 'z'); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((anzahl2)), ( - - ((void *)0) - - ), (UNITY_UINT)(44), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testZaehleBuchstaben_Leereswort(void) { - - char wort2[] = "Test"; - - int anzahl2 = zaehleBuchstaben(wort2, 'z'); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((anzahl2)), ( - - ((void *)0) - - ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testUmdrehenWort_normalesWort(void) { - - - - char wort1[] = "Hello"; - - umdrehenWort(wort1); - - UnityAssertEqualString((const char*)(("olleH")), (const char*)((wort1)), ( - - ((void *)0) - - ), (UNITY_UINT)(57)); - -} - - - -void testUmdrehenWort_leeresWort(void) { - - char wort2[] = ""; - - umdrehenWort(wort2); - - UnityAssertEqualString((const char*)(("")), (const char*)((wort2)), ( - - ((void *)0) - - ), (UNITY_UINT)(63)); - -} - - - -void testUmdrehenWort_einBuchstabe(void) { - - char wort3[] = "A"; - - umdrehenWort(wort3); - - UnityAssertEqualString((const char*)(("A")), (const char*)((wort3)), ( - - ((void *)0) - - ), (UNITY_UINT)(69)); - -} - - - -void testSucheBuchstabe_existiert(void) { - - char wort1[] = "Programming"; - - int position = sucheBuchstabe(wort1, 'g'); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((position)), ( - - ((void *)0) - - ), (UNITY_UINT)(75), UNITY_DISPLAY_STYLE_INT); - - - -} - - - -void testSucheBuchstabe_existiertnicht(void) { - - char wort2[] = "Testing"; - - int position = sucheBuchstabe(wort2, 'z'); - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((position)), ( - - ((void *)0) - - ), (UNITY_UINT)(82), UNITY_DISPLAY_STYLE_INT); - -} - - - -void testSucheBuchstabe_leeresWort(void) { - - char wort3[] = ""; - - int position = sucheBuchstabe(wort3, 'a'); - - UnityAssertEqualNumber((UNITY_INT)((-1)), (UNITY_INT)((position)), ( - - ((void *)0) - - ), (UNITY_UINT)(88), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_ageinseconds.c b/build/test/preprocess/files/test_ageinseconds.c deleted file mode 100644 index 3aadcbf..0000000 --- a/build/test/preprocess/files/test_ageinseconds.c +++ /dev/null @@ -1,77 +0,0 @@ -#include "src/ageinseconds.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - - - -void test_ageinseconds_45_in_sekunden(void) - -{ - - float result = sekunden(45); - - UnityAssertEqualNumber((UNITY_INT)((1419120000)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_ageinseconds_23_in_minuten(void) - -{ - - float result = minuten(23); - - UnityAssertEqualNumber((UNITY_INT)((12088800)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_ageinseconds_34_in_stunden(void) - -{ - - float result = stunden(34); - - UnityAssertEqualNumber((UNITY_INT)((297840)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(33), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_bmi.c b/build/test/preprocess/files/test_bmi.c deleted file mode 100644 index 7b4baff..0000000 --- a/build/test/preprocess/files/test_bmi.c +++ /dev/null @@ -1,59 +0,0 @@ -#include "src/bmi.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_berechnung_BMI(void) - -{ - -float result = calcBMI(2, 100); - -float expected = 25; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_ausgabe_ergebnis(void) - -{ - -const char *result = retResult(25); - -char expected[] = "Normalgewicht"; - -UnityAssertEqualString((const char*)((expected)), (const char*)((result)), ( - -((void *)0) - -), (UNITY_UINT)(26)); - -} diff --git a/build/test/preprocess/files/test_minirechner.c b/build/test/preprocess/files/test_minirechner.c deleted file mode 100644 index bfd4d20..0000000 --- a/build/test/preprocess/files/test_minirechner.c +++ /dev/null @@ -1,325 +0,0 @@ -#include "src/minirechner.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - - - -void test_minitaschenrechner_3_plus_4(void) - -{ - - float result = addieren(3, 4); - - UnityAssertEqualNumber((UNITY_INT)((7)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_float_plus_float(void) - -{ - - float result = addieren(3.1, 4.2); - - UnityAssertEqualNumber((UNITY_INT)((7.3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(25), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus1_plus_minus3(void) - -{ - - float result = addieren(-1, -3); - - UnityAssertEqualNumber((UNITY_INT)((-4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(31), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_0_plus_2(void) - -{ - - float result = addieren(0, 2); - - UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(37), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_5_minus_2(void) - -{ - - float result = subtrahieren(5, 2); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(44), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_float_minus_float(void) - -{ - - float result = subtrahieren(2.7, 1.3); - - UnityAssertEqualNumber((UNITY_INT)((1.4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus7_minus_minus3(void) - -{ - - float result = subtrahieren(-7, -3); - - UnityAssertEqualNumber((UNITY_INT)((-4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(56), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_4_minus_0(void) - -{ - - float result = subtrahieren(4, 0); - - UnityAssertEqualNumber((UNITY_INT)((4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(62), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_8_mal_3(void) - -{ - - float result = multiplizieren(8, 3); - - UnityAssertEqualNumber((UNITY_INT)((24)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(69), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus3_mal_minus4(void) - -{ - - float result = multiplizieren(-3, -4); - - UnityAssertEqualNumber((UNITY_INT)((12)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(75), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_0_mal_5(void) - -{ - - float result = multiplizieren(0, 5); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(81), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_9_durch_3(void) - -{ - - float result = dividieren(9, 3); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(88), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_minus6_durch_minus2(void) - -{ - - float result = dividieren(-6, -2); - - UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(94), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_0_durch_5(void) - -{ - - float result = dividieren(0, 5); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(100), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_14_rest_5(void) - -{ - - float result = rest(14, 5); - - UnityAssertEqualNumber((UNITY_INT)((4)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(107), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_minitaschenrechner_1_rest_7(void) - -{ - - float result = rest(0, 7); - - UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(113), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_120_groesster_gemeinsammer_teiler_30(void) - -{ - - float result = groesster_gemeinsammer_teiler(120, 30); - - UnityAssertEqualNumber((UNITY_INT)((30)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(120), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_minitaschenrechner_120_kleinstes_gemeinsammes_vielfaches_50(void) - -{ - - float result = kleinstes_gemeinsammes_vielfaches(120, 50); - - UnityAssertEqualNumber((UNITY_INT)((600)), (UNITY_INT)((result)), ( - - ((void *)0) - - ), (UNITY_UINT)(127), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/files/test_temperatur.c b/build/test/preprocess/files/test_temperatur.c deleted file mode 100644 index e4db9e2..0000000 --- a/build/test/preprocess/files/test_temperatur.c +++ /dev/null @@ -1,163 +0,0 @@ -#include "src/temperatur.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_temperaturRechner_CzuF(void) - -{ - -float result = CzuF(25); - -float expected = 77; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_temperaturRechner_CzuK(void) - -{ - -float result = CzuK(25); - -float expected = 298.15; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_INT); - -} - - - - - -void test_temperaturRechner_FzuC(void) - -{ - -float result = FzuC(77); - -float expected = 25; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(34), UNITY_DISPLAY_STYLE_INT); - -} - -void test_temperaturRechner_FzuK(void) - -{ - -float result = FzuK(77); - -float expected = 298.15; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(40), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_temperaturRechner_KzuC(void) - -{ - -float result = KzuC(298.15); - -float expected = 25; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(47), UNITY_DISPLAY_STYLE_INT); - -} - -void test_temperaturRechner_KzuF(void) - -{ - -float result = KzuF(298.15); - -float expected = 77; - -UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( - -((void *)0) - -), (UNITY_UINT)(53), UNITY_DISPLAY_STYLE_INT); - -} - - - -void test_returnUnit_first(void) - -{ - -const char *result = getFirstUnit(1); - -char expected[] = "Celsius"; - -UnityAssertEqualString((const char*)((expected)), (const char*)((result)), ( - -((void *)0) - -), (UNITY_UINT)(60)); - -} - -void test_returnUnit_second(void) - -{ - -const char *result = getSecondUnit(2); - -char expected[] = " Kelvin"; - -UnityAssertEqualString((const char*)((expected)), (const char*)((result)), ( - -((void *)0) - -), (UNITY_UINT)(66)); - -} diff --git a/build/test/preprocess/files/test_zahlenraten.c b/build/test/preprocess/files/test_zahlenraten.c deleted file mode 100644 index 91996af..0000000 --- a/build/test/preprocess/files/test_zahlenraten.c +++ /dev/null @@ -1,45 +0,0 @@ -#include "src/zahlenraten.h" -#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" - - - - - - - - -void setUp(void) - -{ - -} - - - -void tearDown(void) - -{ - -} - - - -void test_zahlenraten_gib_zufallszahl(void) - -{ - - int result = gib_zufallszahl(); - - UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), UNITY_GREATER_THAN, ( - - ((void *)0) - - ), (UNITY_UINT)(18), UNITY_DISPLAY_STYLE_INT); - - UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)((101)), (UNITY_INT)((result)), UNITY_SMALLER_THAN, ( - - ((void *)0) - - ), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT); - -} diff --git a/build/test/preprocess/includes/test_MatheSpiele.c b/build/test/preprocess/includes/test_MatheSpiele.c deleted file mode 100644 index a94573e..0000000 --- a/build/test/preprocess/includes/test_MatheSpiele.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/MatheSpiele.h diff --git a/build/test/preprocess/includes/test_SchereSteinPapier.c b/build/test/preprocess/includes/test_SchereSteinPapier.c deleted file mode 100644 index 1bb5f0e..0000000 --- a/build/test/preprocess/includes/test_SchereSteinPapier.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/SchereSteinPapier.h diff --git a/build/test/preprocess/includes/test_WortSpiel.c b/build/test/preprocess/includes/test_WortSpiel.c deleted file mode 100644 index eeb7242..0000000 --- a/build/test/preprocess/includes/test_WortSpiel.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/WortSpiel.h diff --git a/build/test/preprocess/includes/test_ageinseconds.c b/build/test/preprocess/includes/test_ageinseconds.c deleted file mode 100644 index 72fad1a..0000000 --- a/build/test/preprocess/includes/test_ageinseconds.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/ageinseconds.h diff --git a/build/test/preprocess/includes/test_bmi.c b/build/test/preprocess/includes/test_bmi.c deleted file mode 100644 index 495072d..0000000 --- a/build/test/preprocess/includes/test_bmi.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/bmi.h diff --git a/build/test/preprocess/includes/test_minirechner.c b/build/test/preprocess/includes/test_minirechner.c deleted file mode 100644 index 31bb6ec..0000000 --- a/build/test/preprocess/includes/test_minirechner.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/minirechner.h diff --git a/build/test/preprocess/includes/test_temperatur.c b/build/test/preprocess/includes/test_temperatur.c deleted file mode 100644 index ab152af..0000000 --- a/build/test/preprocess/includes/test_temperatur.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/temperatur.h diff --git a/build/test/preprocess/includes/test_zahlenraten.c b/build/test/preprocess/includes/test_zahlenraten.c deleted file mode 100644 index 6296503..0000000 --- a/build/test/preprocess/includes/test_zahlenraten.c +++ /dev/null @@ -1,3 +0,0 @@ ---- -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h -- src/zahlenraten.h diff --git a/build/test/results/test_MatheSpiele.pass b/build/test/results/test_MatheSpiele.pass deleted file mode 100644 index 2227149..0000000 --- a/build/test/results/test_MatheSpiele.pass +++ /dev/null @@ -1,18 +0,0 @@ ---- -:source: - :path: test - :file: test_MatheSpiele.c -:successes: -- :test: test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue - :line: 15 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.023374399868771434 diff --git a/build/test/results/test_SchereSteinPapier.pass b/build/test/results/test_SchereSteinPapier.pass deleted file mode 100644 index b773629..0000000 --- a/build/test/results/test_SchereSteinPapier.pass +++ /dev/null @@ -1,22 +0,0 @@ ---- -:source: - :path: test - :file: test_SchereSteinPapier.c -:successes: -- :test: test_Scheresteinpapier_generateRandom - :line: 15 - :message: '' - :unity_test_time: 0 -- :test: test_Scheresteinpapier_determineWinner - :line: 25 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 2 - :passed: 2 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.019652399932965636 diff --git a/build/test/results/test_WortSpiel.pass b/build/test/results/test_WortSpiel.pass deleted file mode 100644 index 718930b..0000000 --- a/build/test/results/test_WortSpiel.pass +++ /dev/null @@ -1,62 +0,0 @@ ---- -:source: - :path: test - :file: test_WortSpiel.c -:successes: -- :test: testLoescheBuchstaben_Buchstabeexistiert - :line: 15 - :message: '' - :unity_test_time: 0 -- :test: testLoescheBuchstaben_Buchstabeexistiertnicht - :line: 22 - :message: '' - :unity_test_time: 0 -- :test: testLoescheBuchstaben_Leereswort - :line: 28 - :message: '' - :unity_test_time: 0 -- :test: testZaehleBuchstaben_Buchstabenexistiert - :line: 34 - :message: '' - :unity_test_time: 0 -- :test: testZaehleBuchstaben_Buchstabenexistiertnicht - :line: 41 - :message: '' - :unity_test_time: 0 -- :test: testZaehleBuchstaben_Leereswort - :line: 47 - :message: '' - :unity_test_time: 0 -- :test: testUmdrehenWort_normalesWort - :line: 53 - :message: '' - :unity_test_time: 0 -- :test: testUmdrehenWort_leeresWort - :line: 60 - :message: '' - :unity_test_time: 0 -- :test: testUmdrehenWort_einBuchstabe - :line: 66 - :message: '' - :unity_test_time: 0 -- :test: testSucheBuchstabe_existiert - :line: 72 - :message: '' - :unity_test_time: 0 -- :test: testSucheBuchstabe_existiertnicht - :line: 79 - :message: '' - :unity_test_time: 0 -- :test: testSucheBuchstabe_leeresWort - :line: 85 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 12 - :passed: 12 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.021685399813577533 diff --git a/build/test/results/test_ageinseconds.pass b/build/test/results/test_ageinseconds.pass deleted file mode 100644 index a01866d..0000000 --- a/build/test/results/test_ageinseconds.pass +++ /dev/null @@ -1,26 +0,0 @@ ---- -:source: - :path: test - :file: test_ageinseconds.c -:successes: -- :test: test_ageinseconds_45_in_sekunden - :line: 16 - :message: '' - :unity_test_time: 0 -- :test: test_ageinseconds_23_in_minuten - :line: 23 - :message: '' - :unity_test_time: 0 -- :test: test_ageinseconds_34_in_stunden - :line: 30 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 3 - :passed: 3 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.022122299997135997 diff --git a/build/test/results/test_bmi.pass b/build/test/results/test_bmi.pass deleted file mode 100644 index 0166355..0000000 --- a/build/test/results/test_bmi.pass +++ /dev/null @@ -1,22 +0,0 @@ ---- -:source: - :path: test - :file: test_bmi.c -:successes: -- :test: test_berechnung_BMI - :line: 15 - :message: '' - :unity_test_time: 0 -- :test: test_ausgabe_ergebnis - :line: 22 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 2 - :passed: 2 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.02165220002643764 diff --git a/build/test/results/test_minirechner.pass b/build/test/results/test_minirechner.pass deleted file mode 100644 index 9c2aa7d..0000000 --- a/build/test/results/test_minirechner.pass +++ /dev/null @@ -1,86 +0,0 @@ ---- -:source: - :path: test - :file: test_minirechner.c -:successes: -- :test: test_minitaschenrechner_3_plus_4 - :line: 16 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_float_plus_float - :line: 22 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_minus1_plus_minus3 - :line: 28 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_0_plus_2 - :line: 34 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_5_minus_2 - :line: 41 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_float_minus_float - :line: 47 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_minus7_minus_minus3 - :line: 53 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_4_minus_0 - :line: 59 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_8_mal_3 - :line: 66 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_minus3_mal_minus4 - :line: 72 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_0_mal_5 - :line: 78 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_9_durch_3 - :line: 85 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_minus6_durch_minus2 - :line: 91 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_0_durch_5 - :line: 97 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_14_rest_5 - :line: 104 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_1_rest_7 - :line: 110 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_120_groesster_gemeinsammer_teiler_30 - :line: 117 - :message: '' - :unity_test_time: 0 -- :test: test_minitaschenrechner_120_kleinstes_gemeinsammes_vielfaches_50 - :line: 124 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 18 - :passed: 18 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.020430400036275387 diff --git a/build/test/results/test_temperatur.pass b/build/test/results/test_temperatur.pass deleted file mode 100644 index 12f5045..0000000 --- a/build/test/results/test_temperatur.pass +++ /dev/null @@ -1,46 +0,0 @@ ---- -:source: - :path: test - :file: test_temperatur.c -:successes: -- :test: test_temperaturRechner_CzuF - :line: 15 - :message: '' - :unity_test_time: 0 -- :test: test_temperaturRechner_CzuK - :line: 22 - :message: '' - :unity_test_time: 0 -- :test: test_temperaturRechner_FzuC - :line: 30 - :message: '' - :unity_test_time: 0 -- :test: test_temperaturRechner_FzuK - :line: 36 - :message: '' - :unity_test_time: 0 -- :test: test_temperaturRechner_KzuC - :line: 43 - :message: '' - :unity_test_time: 0 -- :test: test_temperaturRechner_KzuF - :line: 49 - :message: '' - :unity_test_time: 0 -- :test: test_returnUnit_first - :line: 56 - :message: '' - :unity_test_time: 0 -- :test: test_returnUnit_second - :line: 62 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 8 - :passed: 8 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.021130899898707867 diff --git a/build/test/results/test_zahlenraten.pass b/build/test/results/test_zahlenraten.pass deleted file mode 100644 index f4902c5..0000000 --- a/build/test/results/test_zahlenraten.pass +++ /dev/null @@ -1,18 +0,0 @@ ---- -:source: - :path: test - :file: test_zahlenraten.c -:successes: -- :test: test_zahlenraten_gib_zufallszahl - :line: 15 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.021387699991464615 diff --git a/build/test/runners/test_MatheSpiele_runner.c b/build/test/runners/test_MatheSpiele_runner.c deleted file mode 100644 index 1173388..0000000 --- a/build/test/runners/test_MatheSpiele_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_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue(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_MatheSpiele.c"); - run_test(test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue, "test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue", 15); - - return UnityEnd(); -} diff --git a/build/test/runners/test_SchereSteinPapier_runner.c b/build/test/runners/test_SchereSteinPapier_runner.c deleted file mode 100644 index 7302e60..0000000 --- a/build/test/runners/test_SchereSteinPapier_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_Scheresteinpapier_generateRandom(void); -extern void test_Scheresteinpapier_determineWinner(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_SchereSteinPapier.c"); - run_test(test_Scheresteinpapier_generateRandom, "test_Scheresteinpapier_generateRandom", 15); - run_test(test_Scheresteinpapier_determineWinner, "test_Scheresteinpapier_determineWinner", 25); - - return UnityEnd(); -} diff --git a/build/test/runners/test_WortSpiel_runner.c b/build/test/runners/test_WortSpiel_runner.c deleted file mode 100644 index fe9dca7..0000000 --- a/build/test/runners/test_WortSpiel_runner.c +++ /dev/null @@ -1,103 +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 testLoescheBuchstaben_Buchstabeexistiert(void); -extern void testLoescheBuchstaben_Buchstabeexistiertnicht(void); -extern void testLoescheBuchstaben_Leereswort(void); -extern void testZaehleBuchstaben_Buchstabenexistiert(void); -extern void testZaehleBuchstaben_Buchstabenexistiertnicht(void); -extern void testZaehleBuchstaben_Leereswort(void); -extern void testUmdrehenWort_normalesWort(void); -extern void testUmdrehenWort_leeresWort(void); -extern void testUmdrehenWort_einBuchstabe(void); -extern void testSucheBuchstabe_existiert(void); -extern void testSucheBuchstabe_existiertnicht(void); -extern void testSucheBuchstabe_leeresWort(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_WortSpiel.c"); - run_test(testLoescheBuchstaben_Buchstabeexistiert, "testLoescheBuchstaben_Buchstabeexistiert", 15); - run_test(testLoescheBuchstaben_Buchstabeexistiertnicht, "testLoescheBuchstaben_Buchstabeexistiertnicht", 22); - run_test(testLoescheBuchstaben_Leereswort, "testLoescheBuchstaben_Leereswort", 28); - run_test(testZaehleBuchstaben_Buchstabenexistiert, "testZaehleBuchstaben_Buchstabenexistiert", 34); - run_test(testZaehleBuchstaben_Buchstabenexistiertnicht, "testZaehleBuchstaben_Buchstabenexistiertnicht", 41); - run_test(testZaehleBuchstaben_Leereswort, "testZaehleBuchstaben_Leereswort", 47); - run_test(testUmdrehenWort_normalesWort, "testUmdrehenWort_normalesWort", 53); - run_test(testUmdrehenWort_leeresWort, "testUmdrehenWort_leeresWort", 60); - run_test(testUmdrehenWort_einBuchstabe, "testUmdrehenWort_einBuchstabe", 66); - run_test(testSucheBuchstabe_existiert, "testSucheBuchstabe_existiert", 72); - run_test(testSucheBuchstabe_existiertnicht, "testSucheBuchstabe_existiertnicht", 79); - run_test(testSucheBuchstabe_leeresWort, "testSucheBuchstabe_leeresWort", 85); - - return UnityEnd(); -} diff --git a/build/test/runners/test_ageinseconds_runner.c b/build/test/runners/test_ageinseconds_runner.c deleted file mode 100644 index c5f9c51..0000000 --- a/build/test/runners/test_ageinseconds_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_ageinseconds_45_in_sekunden(void); -extern void test_ageinseconds_23_in_minuten(void); -extern void test_ageinseconds_34_in_stunden(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_ageinseconds.c"); - run_test(test_ageinseconds_45_in_sekunden, "test_ageinseconds_45_in_sekunden", 16); - run_test(test_ageinseconds_23_in_minuten, "test_ageinseconds_23_in_minuten", 23); - run_test(test_ageinseconds_34_in_stunden, "test_ageinseconds_34_in_stunden", 30); - - return UnityEnd(); -} diff --git a/build/test/runners/test_bmi_runner.c b/build/test/runners/test_bmi_runner.c deleted file mode 100644 index 57947ef..0000000 --- a/build/test/runners/test_bmi_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_berechnung_BMI(void); -extern void test_ausgabe_ergebnis(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_bmi.c"); - run_test(test_berechnung_BMI, "test_berechnung_BMI", 15); - run_test(test_ausgabe_ergebnis, "test_ausgabe_ergebnis", 22); - - return UnityEnd(); -} diff --git a/build/test/runners/test_minirechner_runner.c b/build/test/runners/test_minirechner_runner.c deleted file mode 100644 index 4db8169..0000000 --- a/build/test/runners/test_minirechner_runner.c +++ /dev/null @@ -1,115 +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_minitaschenrechner_3_plus_4(void); -extern void test_minitaschenrechner_float_plus_float(void); -extern void test_minitaschenrechner_minus1_plus_minus3(void); -extern void test_minitaschenrechner_0_plus_2(void); -extern void test_minitaschenrechner_5_minus_2(void); -extern void test_minitaschenrechner_float_minus_float(void); -extern void test_minitaschenrechner_minus7_minus_minus3(void); -extern void test_minitaschenrechner_4_minus_0(void); -extern void test_minitaschenrechner_8_mal_3(void); -extern void test_minitaschenrechner_minus3_mal_minus4(void); -extern void test_minitaschenrechner_0_mal_5(void); -extern void test_minitaschenrechner_9_durch_3(void); -extern void test_minitaschenrechner_minus6_durch_minus2(void); -extern void test_minitaschenrechner_0_durch_5(void); -extern void test_minitaschenrechner_14_rest_5(void); -extern void test_minitaschenrechner_1_rest_7(void); -extern void test_minitaschenrechner_120_groesster_gemeinsammer_teiler_30(void); -extern void test_minitaschenrechner_120_kleinstes_gemeinsammes_vielfaches_50(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_minirechner.c"); - run_test(test_minitaschenrechner_3_plus_4, "test_minitaschenrechner_3_plus_4", 16); - run_test(test_minitaschenrechner_float_plus_float, "test_minitaschenrechner_float_plus_float", 22); - run_test(test_minitaschenrechner_minus1_plus_minus3, "test_minitaschenrechner_minus1_plus_minus3", 28); - run_test(test_minitaschenrechner_0_plus_2, "test_minitaschenrechner_0_plus_2", 34); - run_test(test_minitaschenrechner_5_minus_2, "test_minitaschenrechner_5_minus_2", 41); - run_test(test_minitaschenrechner_float_minus_float, "test_minitaschenrechner_float_minus_float", 47); - run_test(test_minitaschenrechner_minus7_minus_minus3, "test_minitaschenrechner_minus7_minus_minus3", 53); - run_test(test_minitaschenrechner_4_minus_0, "test_minitaschenrechner_4_minus_0", 59); - run_test(test_minitaschenrechner_8_mal_3, "test_minitaschenrechner_8_mal_3", 66); - run_test(test_minitaschenrechner_minus3_mal_minus4, "test_minitaschenrechner_minus3_mal_minus4", 72); - run_test(test_minitaschenrechner_0_mal_5, "test_minitaschenrechner_0_mal_5", 78); - run_test(test_minitaschenrechner_9_durch_3, "test_minitaschenrechner_9_durch_3", 85); - run_test(test_minitaschenrechner_minus6_durch_minus2, "test_minitaschenrechner_minus6_durch_minus2", 91); - run_test(test_minitaschenrechner_0_durch_5, "test_minitaschenrechner_0_durch_5", 97); - run_test(test_minitaschenrechner_14_rest_5, "test_minitaschenrechner_14_rest_5", 104); - run_test(test_minitaschenrechner_1_rest_7, "test_minitaschenrechner_1_rest_7", 110); - run_test(test_minitaschenrechner_120_groesster_gemeinsammer_teiler_30, "test_minitaschenrechner_120_groesster_gemeinsammer_teiler_30", 117); - run_test(test_minitaschenrechner_120_kleinstes_gemeinsammes_vielfaches_50, "test_minitaschenrechner_120_kleinstes_gemeinsammes_vielfaches_50", 124); - - return UnityEnd(); -} diff --git a/build/test/runners/test_temperatur_runner.c b/build/test/runners/test_temperatur_runner.c deleted file mode 100644 index d3be2c0..0000000 --- a/build/test/runners/test_temperatur_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_temperaturRechner_CzuF(void); -extern void test_temperaturRechner_CzuK(void); -extern void test_temperaturRechner_FzuC(void); -extern void test_temperaturRechner_FzuK(void); -extern void test_temperaturRechner_KzuC(void); -extern void test_temperaturRechner_KzuF(void); -extern void test_returnUnit_first(void); -extern void test_returnUnit_second(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_temperatur.c"); - run_test(test_temperaturRechner_CzuF, "test_temperaturRechner_CzuF", 15); - run_test(test_temperaturRechner_CzuK, "test_temperaturRechner_CzuK", 22); - run_test(test_temperaturRechner_FzuC, "test_temperaturRechner_FzuC", 30); - run_test(test_temperaturRechner_FzuK, "test_temperaturRechner_FzuK", 36); - run_test(test_temperaturRechner_KzuC, "test_temperaturRechner_KzuC", 43); - run_test(test_temperaturRechner_KzuF, "test_temperaturRechner_KzuF", 49); - run_test(test_returnUnit_first, "test_returnUnit_first", 56); - run_test(test_returnUnit_second, "test_returnUnit_second", 62); - - return UnityEnd(); -} diff --git a/build/test/runners/test_zahlenraten_runner.c b/build/test/runners/test_zahlenraten_runner.c deleted file mode 100644 index ae2a644..0000000 --- a/build/test/runners/test_zahlenraten_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_zahlenraten_gib_zufallszahl(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_zahlenraten.c"); - run_test(test_zahlenraten_gib_zufallszahl, "test_zahlenraten_gib_zufallszahl", 15); - - return UnityEnd(); -} diff --git a/src/Faktorial.c b/src/Faktorial.c new file mode 100644 index 0000000..df0d625 --- /dev/null +++ b/src/Faktorial.c @@ -0,0 +1,42 @@ +#include + +unsigned long long factorial(int n) { + if (n < 0) { + return 0; // Fakultät für negative Zahlen ist nicht definiert + } + + unsigned long long result = 1; + + for (int i = 1; i <= n; ++i) { + result *= i; + } + + return result; +} + +int getPositiveInteger() { + int num; + while (1) { + printf("Gib eine positive ganze Zahl ein: "); + if (scanf("%d", &num) == 1 && num >= 0) { + break; + } else { + printf("Ungültige Eingabe. Bitte gib eine positive ganze Zahl ein.\n"); + while (getchar() != '\n'); // Leere den Eingabepuffer + } + } + return num; +} + +int run_factorial() { + int num = getPositiveInteger(); + + if (num < 0) { + printf("Fakultät ist für negative Zahlen nicht definiert.\n"); + } else { + unsigned long long result = factorial(num); + printf("Die Fakultät von %d ist %llu\n", num, result); + } + + return 0; +} diff --git a/src/WortSpiel.h b/src/WortSpiel.h index 1828867..90a17ac 100644 --- a/src/WortSpiel.h +++ b/src/WortSpiel.h @@ -4,6 +4,6 @@ void loescheBuchstaben(char* wort, char buchstabe); int zaehleBuchstaben(const char* wort, char buchstabe); void umdrehenWort(char* wort); -void testSucheBuchstabe_existiert(void); +int sucheBuchstabe(const char* wort, char buchstabe); #endif // WORTSPIEL_H diff --git a/src/bmi.c b/src/bmi.c index b915b22..2a892e2 100644 --- a/src/bmi.c +++ b/src/bmi.c @@ -1,13 +1,14 @@ #include #include "bmi.h" +//Body-Mass-Index nach der allgemeinen Formel berechnen (Gewicht / (Groesse in m * Groesse in m) float calcBMI(float a, float b){ if(a > 0 && b > 0) return b / (a * a); else return 0; } - +//Bewertung des BMI zurueckgeben const char* retResult(float points){ if(points < 16) return "Starkes Untergewicht"; @@ -25,18 +26,20 @@ const char* retResult(float points){ return "Starkes Uebergewicht"; } -int run_bmi() -{ +int run_bmi(){ float var1 = 0; float var2 = 0; float var3 = 0; - + + //Groesse einlesen printf("\nBMI-Rechner\n\nGeben Sie ihre Groesse in m an(Bsp: 1.8): "); scanf("%f", &var1); - + + //Gewicht einlesen printf("\nGeben Sie ihr Gewicht in kg an: "); scanf("%f", &var2); - + + //Ergebnis fuer ausgabe und Bewertung berechnen var3 = calcBMI(var1, var2); printf("\nIhr Body-Mass-Index liegt bei %.2f - %s\n", var3, retResult(var3)); diff --git a/src/menue.c b/src/menue.c index fe0ddcd..59e6fc7 100644 --- a/src/menue.c +++ b/src/menue.c @@ -7,6 +7,9 @@ void run_zahlenraten(); int run_scheresteinpapier(); int run_bmi(); int run_wortspiel(); +int run_mathespiele(); +int run_TemperaturRechner(); +int run_PasswortGenerator(); void trenner () { // Die laenge der Abtrenner kann hier fuer alle 3 angepasst werden @@ -19,7 +22,7 @@ int main() { while (eingabe != 0) { trenner(); - printf("\nWelches Programm wollen Sie starten?\n<1> Minirechner \n<2> AlterinSekunden\n<3> MagicEightBall\n<4> Zahlenraten\n<5> SchereSteinPapier\n<6> BMI-Rechner\n<7> Wortspiel\nZum Abbrechen 0 eingeben.\n"); + printf("\nWelches Programm wollen Sie starten?\n<1> Minirechner \n<2> AlterinSekunden\n<3> MagicEightBall\n<4> Zahlenraten\n<5> SchereSteinPapier\n<6> BMI-Rechner\n<7> Wortspiel\n<8> Mathespiele\n<9> Temperaturrechner\n<10> Passwort Generator\nZum Abbrechen 0 eingeben.\n"); trenner(); printf("\nEingabe: "); scanf("%d", &eingabe); @@ -30,7 +33,7 @@ int main() { case 0: return 0; - + case 1: run_minirechner(); break; @@ -52,13 +55,25 @@ int main() { break; case 6: - run_bmi(); - break; - + run_bmi(); + break; + case 7: run_wortspiel(); break; + case 8: + run_mathespiele(); + break; + + case 9: + run_TemperaturRechner(); + break; + + case 10: + run_PasswortGenerator(); + break; + default: printf("Bitte verwenden sie eine der gegebenen Ziffern"); } diff --git a/src/passwortgenerator.c b/src/passwortgenerator.c new file mode 100644 index 0000000..45b5426 --- /dev/null +++ b/src/passwortgenerator.c @@ -0,0 +1,35 @@ +#include +#include +#include +#include + +int run_PasswortGenerator(){ + printf("\nPasswort Generator\n\n"); + //Verfuegbare Zeichen + char zeichen[] = "abcdefghijklmnopqrstuvwxyz0123456789!%&/()=?*#'+-_.:,;<>"; + while(1){ + int eingabe = 0; + printf("\nTippen Sie die gewuenschte Passwortlaenge ein, um ein neues zu generieren\noder '0' um das Programm zu beenden: "); + scanf("%d", &eingabe); + int tmp = 0; + int grossKlein = 0; + if(eingabe == 0){ + return 0; + } + else if(eingabe < 0){ + printf("\nNegative Zahlen sind nicht erlaubt!"); + } + printf("\nIhr Passwort: "); + //Aktuelle Zeit fuer zufallszahlgeneration + srand(time(0)); + for(int i = 0; i < eingabe; i++) + { + tmp = rand()%56; + //Gibt an, ob Buchstabe gross oder klein geschrieben wird + grossKlein = rand()%2; + printf("%c", (tmp < 26 ? (grossKlein == 0 ? toupper(zeichen[tmp]) : zeichen[tmp]) : zeichen[tmp])); + } + printf("\n"); + } + return 0; +} diff --git a/src/temperatur.c b/src/temperatur.c index 7c6929e..6d7c9c3 100644 --- a/src/temperatur.c +++ b/src/temperatur.c @@ -27,6 +27,7 @@ float KzuF(float tempK){ return ((int)(tmp * 100 + .5) / 100.0); } +//Gibt die passende Einheit zur Eingabe, fuer die naechste Eingabe zurueck const char* getFirstUnit(int input){ if(input < 3) return "Celsius"; @@ -36,6 +37,7 @@ const char* getFirstUnit(int input){ return "Kelvin"; return ""; } +//Gibt die passende Einheit zur Eingabe, fuer die Ausgabe des Ergebnisses zurueck const char* getSecondUnit(int input){ if(input == 1 || input == 6) return "° Fahrenheit"; @@ -49,48 +51,50 @@ const char* getSecondUnit(int input){ } int run_TemperaturRechner(){ - float var1, var2; - int var3; + float eingabeTemp, ausgabeTemp; + int eingabeAuswahl; printf("\nTemperaturkonverter (Celsius, Fahrenheit, Kelvin)\nAchten Sie darauf, Kommazahlen mit einem Punkt anzugeben!\n\n"); while(1){ printf("Waehlen Sie: \n<1> Celsius zu Fahrenheit\n<2> Celsius zu Kelvin\n<3> Fahrenheit zu Celsius\n<4> Fahrenheit zu Kelvin\n<5> Kelvin zu Celsius\n<6> Kelvin zu Fahrenheit\n<7> Zum beenden\nAuswahl: "); - scanf("%d", &var3); + scanf("%d", &eingabeAuswahl); - if(var3 < 1 || var3 > 7){ + //Abbruch bei zu kleiner/grosser eingabe + if(eingabeAuswahl < 1 || eingabeAuswahl > 7){ printf("Eingabe nicht zulaessig!"); break; } - else if(var3 == 7) + else if(eingabeAuswahl == 7){ break; + } - printf("\nGeben Sie die Temperatur in %s ein: ", getFirstUnit(var3)); - scanf("%f", &var1); - + printf("\nGeben Sie die Temperatur in %s ein: ", getFirstUnit(eingabeAuswahl)); + scanf("%f", &eingabeTemp); - switch(var3){ + //Passende funktion nach gewaehlter umrechnung aufrufen + switch(eingabeAuswahl){ case 1: - var2 = CzuF(var1); + ausgabeTemp = CzuF(eingabeTemp); break; case 2: - var2 = CzuK(var1); + ausgabeTemp = CzuK(eingabeTemp); break; case 3: - var2 = FzuC(var1); + ausgabeTemp = FzuC(eingabeTemp); break; case 4: - var2 = FzuK(var1); + ausgabeTemp = FzuK(eingabeTemp); break; case 5: - var2 = KzuC(var1); + ausgabeTemp = KzuC(eingabeTemp); break; case 6: - var2 = KzuF(var1); + ausgabeTemp = KzuF(eingabeTemp); break; } - printf(" = %.2f%s\n\n", var2, getSecondUnit(var3)); + printf(" = %.2f%s\n\n", ausgabeTemp, getSecondUnit(eingabeAuswahl)); } diff --git a/team.md b/team.md index 95cd163..3608da4 100644 --- a/team.md +++ b/team.md @@ -1,4 +1,4 @@ fdai7754, fdai7754 fdai7103, fdai7103 -fdai7852, fdai7852 +Lennart Goetze, fdai7852 fdai6407, fdai6407 \ No newline at end of file diff --git a/test/test_SchereSteinPapier.c b/test/test_SchereSteinPapier.c index aa5b429..80a348d 100644 --- a/test/test_SchereSteinPapier.c +++ b/test/test_SchereSteinPapier.c @@ -4,6 +4,8 @@ #include "SchereSteinPapier.h" +#include + void setUp(void) { }