aboutsummaryrefslogtreecommitdiff
path: root/src/unit-test.h
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-09-01 11:03:49 -0300
committerEuAndreh <eu@euandre.org>2021-09-01 11:07:11 -0300
commit7eef4f04d9fd1fc8ecc38392ce1adb1c44899adc (patch)
tree7366fac128a49fb2b128090ca6b69f147ebfe583 /src/unit-test.h
parenttests/lib.sh: Update (diff)
downloadremembering-7eef4f04d9fd1fc8ecc38392ce1adb1c44899adc.tar.gz
remembering-7eef4f04d9fd1fc8ecc38392ce1adb1c44899adc.tar.xz
Refactor C files, split logerr and tests-lib
Diffstat (limited to '')
-rw-r--r--src/unit-test.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/unit-test.h b/src/unit-test.h
index 02922f7..2188f9f 100644
--- a/src/unit-test.h
+++ b/src/unit-test.h
@@ -8,14 +8,6 @@
#define COLOUR_GREEN "\033[0;32m"
#define COLOUR_YELLOW "\033[0;33m"
-void testing(const char *const message) {
- fprintf(stderr, COLOUR_YELLOW "testing" COLOUR_RESET ": %s...", message);
-}
-
-void test_ok() {
- fprintf(stderr, " " COLOUR_GREEN "OK" COLOUR_RESET ".\n");
-}
-
#define ASSERT_MSG "\n" COLOUR_RED "ERROR" COLOUR_RESET ": "
#define assertf(A, M, ...) if (!(A)) { fprintf(stderr, (ASSERT_MSG M "\n"), __VA_ARGS__); assert(A); }
#define asserte(A) if (!(A)) { fprintf(stderr, ASSERT_MSG "\n"); assert(A); }