|
@ -37,3 +37,17 @@ void test_turn_direction_right_from_E_expected_S(void) |
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_TRUE(expected == actual); |
|
|
TEST_ASSERT_TRUE(expected == actual); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_turn_direction_right_from_S_expected_W(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
Direction actual = S; |
|
|
|
|
|
Direction expected = W; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
turn_direction_right(&actual); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_TRUE(expected == actual); |
|
|
|
|
|
} |
|
|
|
|
|
|