From 1e2e35b0bcb131c4896d66c2a0728065bc8d5963 Mon Sep 17 00:00:00 2001 From: fdai7729 Date: Thu, 8 Feb 2024 20:02:33 +0000 Subject: [PATCH] Update test/test_battleship.c --- test/test_battleship.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test/test_battleship.c b/test/test_battleship.c index 8b13789..68a4e16 100644 --- a/test/test_battleship.c +++ b/test/test_battleship.c @@ -1 +1,25 @@ +#ifdef TEST +#include "unity.h" +#include "battleship_game.h" + + +void setUp(void){ + +} +void tearDown(void){ +} + + +void test_convertcoor(void) { + + int output; + + + output = convertcoor('b', 5); + + + TEST_ASSERT_EQUAL_INT(14, output); +} + +#endif