@@ -37,17 +37,17 @@ void test_pump_stops_after_given_time() {
37
37
waterPumpScheduler.start (runTimeMs, currentTimeMs);
38
38
// check status
39
39
auto status = waterPumpScheduler.status ();
40
- UNITY_TEST_ASSERT_TRUE (status.isRunning );
41
- UNITY_TEST_ASSERT_EQUAL (status.stopTime , runTimeMs);
40
+ TEST_ASSERT_TRUE (status.isRunning );
41
+ TEST_ASSERT_EQUAL (status.stopTime , runTimeMs);
42
42
43
43
while (currentTimeMs < runTimeMs) {
44
44
waterPumpScheduler.tick (currentTimeMs);
45
- UNITY_TEST_ASSERT_TRUE (fakeWaterPump.isRunning ());
45
+ TEST_ASSERT_TRUE (fakeWaterPump.isRunning ());
46
46
currentTimeMs += 100 ;
47
47
}
48
48
// pump should be stopped after given time
49
49
waterPumpScheduler.tick (runTimeMs + 1 );
50
- UNITY_TEST_ASSERT_FALSE (fakeWaterPump.isRunning ());
50
+ TEST_ASSERT_FALSE (fakeWaterPump.isRunning ());
51
51
}
52
52
53
53
// test that pump is periodically forced to stop after given time
@@ -60,14 +60,14 @@ void test_pump_is_periodically_forced_to_stop_after_given_time () {
60
60
waterPumpScheduler.start (1 , currentTimeMs);
61
61
currentTimeMs += 1 ;
62
62
waterPumpScheduler.tick (currentTimeMs);
63
- UNITY_TEST_ASSERT_FALSE (fakeWaterPump.isRunning ()); // pump should be stopped after given time
63
+ TEST_ASSERT_FALSE (fakeWaterPump.isRunning ()); // pump should be stopped after given time
64
64
65
65
for (int i = 0 ; i < 10 ; i++) {
66
66
// emulate that pump was started again
67
67
fakeWaterPump.start ();
68
68
currentTimeMs += 1000 ;
69
69
waterPumpScheduler.tick (currentTimeMs);
70
- UNITY_TEST_ASSERT_FALSE (fakeWaterPump.isRunning ()); // pump should be stopped
70
+ TEST_ASSERT_FALSE (fakeWaterPump.isRunning ()); // pump should be stopped
71
71
}
72
72
}
73
73
0 commit comments