fdai7754
11 months ago
110 changed files with 130 additions and 3512 deletions
-
17build/test/cache/defines_dependency.yml
-
278build/test/cache/input.yml
-
37build/test/cache/test_MatheSpiele.c
-
99build/test/cache/test_SchereSteinPapier.c
-
223build/test/cache/test_WortSpiel.c
-
77build/test/cache/test_ageinseconds.c
-
59build/test/cache/test_bmi.c
-
325build/test/cache/test_minirechner.c
-
163build/test/cache/test_temperatur.c
-
45build/test/cache/test_zahlenraten.c
-
1build/test/dependencies/MatheSpiele.d
-
2build/test/dependencies/SchereSteinPapier.d
-
1build/test/dependencies/WortSpiel.d
-
1build/test/dependencies/ageinseconds.d
-
1build/test/dependencies/bmi.d
-
6build/test/dependencies/cmock.d
-
1build/test/dependencies/minirechner.d
-
1build/test/dependencies/temperatur.d
-
4build/test/dependencies/test_MatheSpiele.d
-
4build/test/dependencies/test_MatheSpiele_runner.d
-
4build/test/dependencies/test_SchereSteinPapier.d
-
4build/test/dependencies/test_SchereSteinPapier_runner.d
-
4build/test/dependencies/test_WortSpiel.d
-
4build/test/dependencies/test_WortSpiel_runner.d
-
4build/test/dependencies/test_ageinseconds.d
-
4build/test/dependencies/test_ageinseconds_runner.d
-
4build/test/dependencies/test_bmi.d
-
3build/test/dependencies/test_bmi_runner.d
-
4build/test/dependencies/test_minirechner.d
-
4build/test/dependencies/test_minirechner_runner.d
-
4build/test/dependencies/test_temperatur.d
-
4build/test/dependencies/test_temperatur_runner.d
-
4build/test/dependencies/test_zahlenraten.d
-
4build/test/dependencies/test_zahlenraten_runner.d
-
4build/test/dependencies/unity.d
-
1build/test/dependencies/zahlenraten.d
-
BINbuild/test/out/c/MatheSpiele.o
-
BINbuild/test/out/c/SchereSteinPapier.o
-
BINbuild/test/out/c/WortSpiel.o
-
BINbuild/test/out/c/ageinseconds.o
-
BINbuild/test/out/c/bmi.o
-
BINbuild/test/out/c/cmock.o
-
BINbuild/test/out/c/minirechner.o
-
BINbuild/test/out/c/temperatur.o
-
BINbuild/test/out/c/test_MatheSpiele.o
-
BINbuild/test/out/c/test_MatheSpiele_runner.o
-
BINbuild/test/out/c/test_SchereSteinPapier.o
-
BINbuild/test/out/c/test_SchereSteinPapier_runner.o
-
BINbuild/test/out/c/test_WortSpiel.o
-
BINbuild/test/out/c/test_WortSpiel_runner.o
-
BINbuild/test/out/c/test_ageinseconds.o
-
BINbuild/test/out/c/test_ageinseconds_runner.o
-
BINbuild/test/out/c/test_bmi.o
-
BINbuild/test/out/c/test_bmi_runner.o
-
BINbuild/test/out/c/test_minirechner.o
-
BINbuild/test/out/c/test_minirechner_runner.o
-
BINbuild/test/out/c/test_temperatur.o
-
BINbuild/test/out/c/test_temperatur_runner.o
-
BINbuild/test/out/c/test_zahlenraten.o
-
BINbuild/test/out/c/test_zahlenraten_runner.o
-
BINbuild/test/out/c/unity.o
-
BINbuild/test/out/c/zahlenraten.o
-
BINbuild/test/out/test_MatheSpiele.out
-
BINbuild/test/out/test_SchereSteinPapier.out
-
BINbuild/test/out/test_WortSpiel.out
-
BINbuild/test/out/test_ageinseconds.out
-
BINbuild/test/out/test_bmi.out
-
BINbuild/test/out/test_minirechner.out
-
BINbuild/test/out/test_temperatur.out
-
BINbuild/test/out/test_zahlenraten.out
-
37build/test/preprocess/files/test_MatheSpiele.c
-
99build/test/preprocess/files/test_SchereSteinPapier.c
-
223build/test/preprocess/files/test_WortSpiel.c
-
77build/test/preprocess/files/test_ageinseconds.c
-
59build/test/preprocess/files/test_bmi.c
-
325build/test/preprocess/files/test_minirechner.c
-
163build/test/preprocess/files/test_temperatur.c
-
45build/test/preprocess/files/test_zahlenraten.c
-
3build/test/preprocess/includes/test_MatheSpiele.c
-
3build/test/preprocess/includes/test_SchereSteinPapier.c
-
3build/test/preprocess/includes/test_WortSpiel.c
-
3build/test/preprocess/includes/test_ageinseconds.c
-
3build/test/preprocess/includes/test_bmi.c
-
3build/test/preprocess/includes/test_minirechner.c
-
3build/test/preprocess/includes/test_temperatur.c
-
3build/test/preprocess/includes/test_zahlenraten.c
-
18build/test/results/test_MatheSpiele.pass
-
22build/test/results/test_SchereSteinPapier.pass
-
62build/test/results/test_WortSpiel.pass
-
26build/test/results/test_ageinseconds.pass
-
22build/test/results/test_bmi.pass
-
86build/test/results/test_minirechner.pass
-
46build/test/results/test_temperatur.pass
-
18build/test/results/test_zahlenraten.pass
-
81build/test/runners/test_MatheSpiele_runner.c
-
83build/test/runners/test_SchereSteinPapier_runner.c
-
103build/test/runners/test_WortSpiel_runner.c
-
85build/test/runners/test_ageinseconds_runner.c
-
83build/test/runners/test_bmi_runner.c
-
115build/test/runners/test_minirechner_runner.c
@ -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 |
|
@ -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/ |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
} |
|
||||
|
|
||||
} |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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)); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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)); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -1 +0,0 @@ |
|||||
build/test/out/c/MatheSpiele.o: src/MatheSpiele.c src/MatheSpiele.h |
|
@ -1,2 +0,0 @@ |
|||||
build/test/out/c/SchereSteinPapier.o: src/SchereSteinPapier.c \ |
|
||||
src/SchereSteinPapier.h |
|
@ -1 +0,0 @@ |
|||||
build/test/out/c/WortSpiel.o: src/WortSpiel.c src/WortSpiel.h |
|
@ -1 +0,0 @@ |
|||||
build/test/out/c/ageinseconds.o: src/ageinseconds.c src/ageinseconds.h |
|
@ -1 +0,0 @@ |
|||||
build/test/out/c/bmi.o: src/bmi.c src/bmi.h |
|
@ -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 |
|
@ -1 +0,0 @@ |
|||||
build/test/out/c/minirechner.o: src/minirechner.c src/minirechner.h |
|
@ -1 +0,0 @@ |
|||||
build/test/out/c/temperatur.o: src/temperatur.c src/temperatur.h |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -1 +0,0 @@ |
|||||
build/test/out/c/zahlenraten.o: src/zahlenraten.c |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
} |
|
||||
|
|
||||
} |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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)); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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)); |
|
||||
|
|
||||
} |
|
@ -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); |
|
||||
|
|
||||
} |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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(); |
|
||||
} |
|
@ -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(); |
|
||||
} |
|
@ -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(); |
|
||||
} |
|
@ -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(); |
|
||||
} |
|
@ -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(); |
|
||||
} |
|
@ -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(); |
|
||||
} |
|
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue