Patrick Barrett / libexositecoap
Revision:
0:c7393ae16c16
--- /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;
+}
+