aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_suite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_suite.cpp b/test/test_suite.cpp
index 1251212..53482ab 100644
--- a/test/test_suite.cpp
+++ b/test/test_suite.cpp
@@ -55,11 +55,12 @@ void _out_fct(char character, void* arg)
}
-
TEST_CASE("printf", "[]" ) {
printf_idx = 0U;
memset(printf_buffer, 0xCC, 100U);
REQUIRE(test::printf("% d", 4232) == 5);
+ REQUIRE(printf_buffer[5] == (char)0xCC);
+ printf_buffer[5] = 0;
REQUIRE(!strcmp(printf_buffer, " 4232"));
}