diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-07 09:25:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-07 09:25:17 +0900 |
| commit | 107c517b22e88d760c375a4b9da6dffd6da26d85 (patch) | |
| tree | 641106293c27c77aed9d2e4173d63d0c2ec225a6 /tests/variables.c | |
| parent | 3633f9a1f4f7638355beba85c53a2bb2ab0e3976 (diff) | |
| download | ducc-107c517b22e88d760c375a4b9da6dffd6da26d85.tar.gz ducc-107c517b22e88d760c375a4b9da6dffd6da26d85.tar.zst ducc-107c517b22e88d760c375a4b9da6dffd6da26d85.zip | |
refactor: add ASSERT_EQ_STR() to tests/helpers.h
Diffstat (limited to 'tests/variables.c')
| -rw-r--r-- | tests/variables.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 <helpers.h> 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]); |
