From 1fff64319d632ca7d65a044c765f8d2bf37a5070 Mon Sep 17 00:00:00 2001 From: Sophia Weber Date: Sat, 27 Jan 2024 12:06:17 +0100 Subject: [PATCH] input Handling module added gitignore files added xml_report plugin activated --- .gitignore | 5 ++++- project.yml | 1 + src/inputHandling.c | 8 ++++++++ src/inputHandling.h | 6 ++++++ src/main.c | 2 ++ test/test_inputHandling.c | 20 ++++++++++++++++++++ 6 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 src/inputHandling.c create mode 100644 src/inputHandling.h create mode 100644 test/test_inputHandling.c diff --git a/.gitignore b/.gitignore index 22c8fb5..0868b73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ .vscode build -*.out \ No newline at end of file +cmake-build-debug +CMakeLists.txt +.idea +*.out diff --git a/project.yml b/project.yml index d2e054b..cfbdf24 100644 --- a/project.yml +++ b/project.yml @@ -97,5 +97,6 @@ - "#{Ceedling.load_path}" :enabled: - stdout_pretty_tests_report + - xml_tests_report - module_generator ... diff --git a/src/inputHandling.c b/src/inputHandling.c new file mode 100644 index 0000000..705251e --- /dev/null +++ b/src/inputHandling.c @@ -0,0 +1,8 @@ +#include "inputHandling.h" +#include + +char a[200]; + +void input(){ + scanf("%s", a); +} diff --git a/src/inputHandling.h b/src/inputHandling.h new file mode 100644 index 0000000..b73a64c --- /dev/null +++ b/src/inputHandling.h @@ -0,0 +1,6 @@ +#ifndef INPUTHANDLING_H +#define INPUTHANDLING_H + +extern void input(); + +#endif // INPUTHANDLING_H diff --git a/src/main.c b/src/main.c index cb22e48..1bca401 100644 --- a/src/main.c +++ b/src/main.c @@ -1,4 +1,6 @@ #include "helloWorld.h" +#include "inputHandling.h" void main() { + input(); } diff --git a/test/test_inputHandling.c b/test/test_inputHandling.c new file mode 100644 index 0000000..157270f --- /dev/null +++ b/test/test_inputHandling.c @@ -0,0 +1,20 @@ +#ifdef TEST + +#include "unity.h" + +#include "inputHandling.h" + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_inputHandling_NeedToImplement(void) +{ + TEST_IGNORE_MESSAGE("Need to Implement inputHandling"); +} + +#endif // TEST