From 604c8f61ce81939c7224904e01981953b19509d0 Mon Sep 17 00:00:00 2001 From: fdai7775 Date: Fri, 2 Feb 2024 10:41:47 +0000 Subject: [PATCH] Test checkline case identical --- test/test_tictactoe.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index 8c03320..c98770d 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -22,4 +22,15 @@ void test_if_not_identical(void){ TEST_ASSERT_EQUAL_CHAR(' ', result); } + +void test_if_identical(void){ + /* arrange */ + char result; + char a = 'a', b = 'a', c = 'a'; + + result = checkLine(a, b, c); + + /* assert */ + TEST_ASSERT_EQUAL_CHAR(a, result); +} #endif // TEST