From ca3b901593dbed2edb193ed915185ce18127dc32 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 22:44:44 +0100 Subject: [PATCH] testing with invalid input --- test/test_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_input.c b/test/test_input.c index 76cb1cf..c086d80 100644 --- a/test/test_input.c +++ b/test/test_input.c @@ -66,3 +66,9 @@ void test_testg(void){ char result = getTInput('g'); TEST_ASSERT_EQUAL_CHAR('n', result); } + +//test input invalid +void test_testg(void){ + char result = getTInput('b'); + TEST_ASSERT_EQUAL_CHAR('n', result); +}