diff options
author | Nathan Angelacos <nangel@alpinelinux.org> | 2011-05-10 01:22:50 +0000 |
---|---|---|
committer | Nathan Angelacos <nangel@alpinelinux.org> | 2011-05-10 01:22:50 +0000 |
commit | 1251e3c4b2b4845fc5a0ee01b56a6c2669437cad (patch) | |
tree | e0b55195cde4d5f2f4844132fdb286e2906c947e /tests/utest_common.c | |
parent | dd3a2d24cb75eb4c8f9c65dddd79e23546bf36b0 (diff) | |
download | haserl-1251e3c4b2b4845fc5a0ee01b56a6c2669437cad.tar.bz2 haserl-1251e3c4b2b4845fc5a0ee01b56a6c2669437cad.tar.xz |
0.9.29 candidate
Diffstat (limited to 'tests/utest_common.c')
-rw-r--r-- | tests/utest_common.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/utest_common.c b/tests/utest_common.c deleted file mode 100644 index 0085cb4..0000000 --- a/tests/utest_common.c +++ /dev/null @@ -1,46 +0,0 @@ -/* file minunit_example.c */ - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include "../src/common.h" -#include "minunit.h" - -int tests_run = 0; - - -void * xmalloc=malloc; -void * xrealloc=realloc; - - -char *test_lowercase() { - char source[] = "This is a Test!"; - int result; - - lowercase(source); - result=memcmp("this is a test!", source, strlen(source)); - - mu_assert("lowercase failed",result == 0); - return 0; - } - - -char *all_tests() { - mu_run_test(test_lowercase); - return 0; - } - -int main(int argc, char **argv) { - char *result = all_tests(); - printf ("%d\n", (int) result); - if (result != 0) { - printf("%s\n", result); - } - else { - printf("ALL TESTS PASSED\n"); - } - printf("Tests run: %d\n", tests_run); - - return result != 0; - } - |