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/variables.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/variables.c') diff --git a/tests/variables.c b/tests/variables.c index 9ba505e..5f09074 100644 --- a/tests/variables.c +++ b/tests/variables.c @@ -1,7 +1,6 @@ #include int printf(const char*, ...); -int strcmp(const char*, const char*); // global variables int g_a; @@ -46,7 +45,7 @@ int main() { ASSERT_EQ(123, g_j); ASSERT_EQ(999, g_k); - ASSERT_EQ(0, strcmp("hello", g_l)); + ASSERT_EQ_STR("hello", g_l); ASSERT_EQ(65, arr1[0]); ASSERT_EQ(66, arr1[1]); -- cgit v1.3-1-g0d28