Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: tests/test.c
- Revision:
- 0:c7393ae16c16
diff -r 000000000000 -r c7393ae16c16 tests/test.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test.c Thu Dec 18 16:00:10 2014 -0600 @@ -0,0 +1,33 @@ +#include <stdio.h> +#include <string.h> +#include "minunit.h" +#include "../src/exosite.h" + +int tests_run = 0; + +static char * test_math() { + mu_assert("[ERROR] 2+2 != 4", 2+2 == 4); + return 0; +} + +static char * all_tests() { + // Make Sure the Tests Are Working + mu_run_test(test_math); + + // Actually Run the Real Tests + return 0; +} + +int main(int argc, char **argv) { + char *result = all_tests(); + if (result != 0) { + printf("%s\n", result); + } + else { + printf("ALL TESTS PASSED\n"); + } + printf("Tests run: %d\n", tests_run); + + return result != 0; +} +