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/macros.sh | |
| 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/macros.sh')
| -rw-r--r-- | tests/macros.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/macros.sh b/tests/macros.sh index 69baae5..902f168 100644 --- a/tests/macros.sh +++ b/tests/macros.sh @@ -294,8 +294,6 @@ EOF test_exit_code 0 <<'EOF' #include <helpers.h> -int strcmp(const char*, const char*); - #define FOO 42 #define TO_STRING(x) TO_STRING_HELPER(x) @@ -306,8 +304,8 @@ int strcmp(const char*, const char*); #define BAZ TO_STRING2(FOO) int main() { - ASSERT_EQ(0, strcmp("42", BAR)); - ASSERT_EQ(0, strcmp("FOO", BAZ)); + ASSERT_EQ_STR("42", BAR); + ASSERT_EQ_STR("FOO", BAZ); } EOF |
