|
@ -19,7 +19,7 @@ void test_bomb_in_array(void){ |
|
|
result = bomb_in_array(array, bomb, length); |
|
|
result = bomb_in_array(array, bomb, length); |
|
|
|
|
|
|
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_TRUE(result);//head collides with body |
|
|
|
|
|
|
|
|
TEST_ASSERT_TRUE(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -34,7 +34,7 @@ void test_bomb_not_in_array(void){ |
|
|
result = bomb_in_array(array, bomb, length); |
|
|
result = bomb_in_array(array, bomb, length); |
|
|
|
|
|
|
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_FALSE(result);//head collides with body |
|
|
|
|
|
|
|
|
TEST_ASSERT_FALSE(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |