Zeyu Feng 201377605

Dependencies:   mbed

On Minerva

Revision:
15:3571beaaeed8
Parent:
12:009895f6b6e4
--- a/tests.h	Fri May 15 08:04:39 2020 +0000
+++ b/tests.h	Fri May 15 12:21:45 2020 +0000
@@ -2,6 +2,7 @@
 #define TEST_H
 
 #include "People-test.h"
+#include "shot-test.h"
 
 /**run all the tests of this program
 
@@ -12,14 +13,21 @@
 {
     int failed_tests = 0;
     
-    printf("Testing People_test...\n");
-    bool test_passed = People_test();
+    printf("Testing...\n");
+    bool test_passed1 = People_test();
+    bool test_passed2 = shot_test();
     
     //print the result of each test
-    if(test_passed){
-        printf("...TEST Passed!\n");
+    if(test_passed1){
+        printf("...People TEST Passed!\n");
     }else{
-        printf("...Failed\n");
+        printf("...People TEST Failed\n");
+        failed_tests++;
+    }
+    if(test_passed2){
+        printf("...shot TEST Passed!\n");
+    }else{
+        printf("...shot TEST Failed\n");
         failed_tests++;
     }