Program for the water play project for the course Software Testing Practical 2016 given at the VU University

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Revision:
37:2d9480c498c9
Parent:
36:8aeb014bd651
Child:
50:c1f682eb4c4e
--- a/testing.cpp	Tue Jun 14 15:54:12 2016 +0000
+++ b/testing.cpp	Tue Jun 14 15:56:14 2016 +0000
@@ -61,12 +61,19 @@
     DEF_MOCKS(temp_heating_mock, salt_mock_steady, prox_mock_steady);
     PIDController pidc(false,0,&temp,&salt,&prox);
     
+    pidc.run();
     tc->assert(pidc.is_heating(), "PIDController should be heating at temp=29!");
     Thread::wait(1000);
+    
+    pidc.run();
     tc->assert(pidc.is_heating(), "PIDController should be heating at temp=30!");
     Thread::wait(1000);
+    
+    pidc.run();
     tc->assert(pidc.is_heating(), "PIDController should be heating at temp=31!");
     Thread::wait(1500);
+    
+    pidc.run();
     tc->assert(!pidc.is_heating(), "PIDController shouldn't be heating at temp=32.5!");
     
     return true;