From e9abad7b74a24159c050d9defbee786ed9cf3f1e Mon Sep 17 00:00:00 2001 From: fdai7729 Date: Fri, 9 Feb 2024 04:04:44 +0000 Subject: [PATCH] Update test/test_battleship.c --- test/test_battleship.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/test_battleship.c b/test/test_battleship.c index 68a4e16..56d6aa3 100644 --- a/test/test_battleship.c +++ b/test/test_battleship.c @@ -21,5 +21,23 @@ void test_convertcoor(void) { TEST_ASSERT_EQUAL_INT(14, output); } +void setUp(void){ + +} +void tearDown(void){ +} + + +void test_convertcoor(void) { + + int output; + + + output = convertcoor('F', 6); + + + TEST_ASSERT_EQUAL_INT(55, output); +} + #endif