aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/functions.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-07 09:25:17 +0900
committernsfisis <nsfisis@gmail.com>2026-02-07 09:25:17 +0900
commit107c517b22e88d760c375a4b9da6dffd6da26d85 (patch)
tree641106293c27c77aed9d2e4173d63d0c2ec225a6 /tests/functions.c
parent3633f9a1f4f7638355beba85c53a2bb2ab0e3976 (diff)
downloadducc-107c517b22e88d760c375a4b9da6dffd6da26d85.tar.gz
ducc-107c517b22e88d760c375a4b9da6dffd6da26d85.tar.zst
ducc-107c517b22e88d760c375a4b9da6dffd6da26d85.zip
refactor: add ASSERT_EQ_STR() to tests/helpers.h
Diffstat (limited to 'tests/functions.c')
-rw-r--r--tests/functions.c3
1 files changed, 1 insertions, 2 deletions
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 <helpers.h>
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;