From b829c32d423623694f79a96df82164f20ce0f0a0 Mon Sep 17 00:00:00 2001 From: fdai7033 Date: Tue, 31 Jan 2023 20:36:11 +0100 Subject: [PATCH] Unittest: test_4.c --- .vscode/settings.json | 5 ----- unittests/test_4.c | 9 +++++++++ unittests/test_main.c | 1 + unittests/tests.h | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 .vscode/settings.json create mode 100644 unittests/test_4.c diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index c980a73..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files.associations": { - "tests.h": "c" - } -} \ No newline at end of file diff --git a/unittests/test_4.c b/unittests/test_4.c new file mode 100644 index 0000000..d145b95 --- /dev/null +++ b/unittests/test_4.c @@ -0,0 +1,9 @@ +#include "tests.h" + +void test_4() +{ + printf("TEST 4 STARTET\n"); + char test[12]; + assert(!resetInput(test)); + printf("TEST 4 ERFOLGREICH\n"); +} \ No newline at end of file diff --git a/unittests/test_main.c b/unittests/test_main.c index 7fff852..33ef33b 100644 --- a/unittests/test_main.c +++ b/unittests/test_main.c @@ -7,4 +7,5 @@ int main() test_1(); test_2(); test_3(); + test_4(); } \ No newline at end of file diff --git a/unittests/tests.h b/unittests/tests.h index 30f19d7..47fe48d 100644 --- a/unittests/tests.h +++ b/unittests/tests.h @@ -7,4 +7,5 @@ void test_1(); void test_2(); -void test_3(); \ No newline at end of file +void test_3(); +void test_4(); \ No newline at end of file