From 8b5248a240fff12638080e8132387cf2161b0f9f Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 01:51:33 +0100 Subject: [PATCH] testing arrow key input --- test/test_input.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/test_input.c diff --git a/test/test_input.c b/test/test_input.c new file mode 100644 index 0000000..62305a1 --- /dev/null +++ b/test/test_input.c @@ -0,0 +1,19 @@ +#include "unity.h" +#include +#include + + + +void setUp(void){ +} + +void tearDown(void){ + +} + +void test_testArrow(void){ + + char result = getTInput('\033'); + + TEST_ASSERT_EQUAL_CHAR('ar', result); +}