|
@ -15,11 +15,11 @@ void tearDown(void) |
|
|
void test_change_direction_from_N_expected_E(void) |
|
|
void test_change_direction_from_N_expected_E(void) |
|
|
{ |
|
|
{ |
|
|
/* arrange */ |
|
|
/* arrange */ |
|
|
Dir actual = N; |
|
|
|
|
|
Dir expected = E; |
|
|
|
|
|
|
|
|
Direction actual = N; |
|
|
|
|
|
Direction expected = E; |
|
|
|
|
|
|
|
|
/* act */ |
|
|
/* act */ |
|
|
change_direction(&actual); |
|
|
|
|
|
|
|
|
turn_direction_right(&actual); |
|
|
|
|
|
|
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_TRUE(expected == actual); |
|
|
TEST_ASSERT_TRUE(expected == actual); |
|
|