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