From 3bfe25a63e9dc16e929b0eec249cc4c31ed62973 Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Wed, 14 Feb 2024 18:51:08 +0100 Subject: [PATCH] remove tests.cpp Don't wann do unit testing gonna use cmake for end-to-end testing --- src/tests.cpp | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/tests.cpp diff --git a/src/tests.cpp b/src/tests.cpp deleted file mode 100644 index b762aa7..0000000 --- a/src/tests.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// This file contains all Tests - -#include -#include -#include -#include -#include -#include - -// Here I define all Error Codes -#define not_implemented_error 255 - -int test_cmdline_input_parsing() { - char *argv[] = { - (char*)"--help" - }; - int argc = sizeof(argv)/sizeof(argv[0]); - - return parse_cmdline_arguments(argc, argv);; -} - -// This will run all the tests -int main(void) { - int (*p[1]) () = { - test_cmdline_input_parsing - }; - size_t array_size = sizeof(p)/sizeof(p[0]); - - for (size_t index = 0; index < array_size; index++) { - int status_code; - status_code = p[index](); - - std::cout << "test " + std::to_string(index) + ": "; - switch (status_code) { - case 0: std::cout << "passed\0"; - case 1: std::cout << "failed\0"; - case 255: std::cout << "not yet implemented\0"; - } - } - return 0; -} \ No newline at end of file