From 3378dcfe4f400150cd50a7df6105c2e52e7fcfa0 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 22:49:54 +0100 Subject: [PATCH] fix testing --- src/input.c | 2 +- test/test_input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input.c b/src/input.c index 20612ec..f3ce425 100644 --- a/src/input.c +++ b/src/input.c @@ -57,7 +57,7 @@ char getInput(){ */ char getTInput(char key){ if(key == '\033'){ - return 'ar'; + return 'r'; } else{ switch(key){ diff --git a/test/test_input.c b/test/test_input.c index c086d80..6025b52 100644 --- a/test/test_input.c +++ b/test/test_input.c @@ -68,7 +68,7 @@ void test_testg(void){ } //test input invalid -void test_testg(void){ +void test_testb(void){ char result = getTInput('b'); TEST_ASSERT_EQUAL_CHAR('n', result); }