Example Pong game for mbed.

Dependencies:   mbed

Revision:
10:167d0aa1c9b3
Child:
11:1447cb7dce3c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests.h	Mon Apr 16 18:08:05 2018 +0000
@@ -0,0 +1,34 @@
+#ifndef TESTS_H
+#define TESTS_H
+
+#include "Ball-test.h"
+
+int run_all_tests()
+{
+    int n_tests_failed = false;
+
+    // Run the Ball_test_movement test
+    printf("Testing Ball_test_movement...\n");
+    bool this_test_passed = Ball_test_movement();
+    
+    if (this_test_passed) {
+        printf("...Passed!\n");
+    }
+    else {
+         printf("...FAILED!\n");
+         ++n_tests_failed; // Increment number of failures
+    }
+    
+    // Repeat the above for each testing function...
+
+    if (n_tests_failed > 0) {
+        printf("%d tests FAILED!\n", n_tests_failed);
+    }
+    else {
+        printf("All tests passed!\n");
+    }
+
+    return n_tests_failed;
+}
+
+#endif
\ No newline at end of file