From 107c517b22e88d760c375a4b9da6dffd6da26d85 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 7 Feb 2026 09:25:17 +0900 Subject: refactor: add ASSERT_EQ_STR() to tests/helpers.h --- tests/functions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/functions.c') diff --git a/tests/functions.c b/tests/functions.c index e9e622e..b5ffecb 100644 --- a/tests/functions.c +++ b/tests/functions.c @@ -1,7 +1,6 @@ #include int sprintf(char*, const char*, ...); -int strcmp(const char*, const char*); int foo() { int i; @@ -123,7 +122,7 @@ int main() { ASSERT_EQ(10, f7(9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)); char buf[100]; - ASSERT_EQ(0, strcmp("1,2,3,4,5,6,7,8,9,10", f8(buf, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10))); + ASSERT_EQ_STR("1,2,3,4,5,6,7,8,9,10", f8(buf, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)); S s; s.x = 5; -- cgit v1.3-1-g0d28