@ -16,5 +16,8 @@ void turn_direction_right(Direction *direction){
case S:
*direction = W;
break;
case W:
*direction = N;
}
@ -51,3 +51,16 @@ void test_turn_direction_right_from_S_expected_W(void)
TEST_ASSERT_TRUE(expected == actual);
void test_turn_direction_right_from_W_expected_N(void)
{
/* arrange */
Direction actual = W;
Direction expected = N;
/* act */
turn_direction_right(&actual);
/* assert */