aboutsummaryrefslogtreecommitdiff
path: root/tests/test_join_str.c
diff options
context:
space:
mode:
authoraxtlos <axtlos@disroot.org>2024-09-27 21:31:47 +0200
committeraxtlos <axtlos@disroot.org>2024-09-27 21:31:47 +0200
commitb2182396df5d99ff5c26161aaffa5ced879742c5 (patch)
treec848fc157ab55c63b49b063d212c1671fa41afae /tests/test_join_str.c
parent7aa261f8d57cb53cc334f6bf1920a6f8517ff054 (diff)
downloadextlib-b2182396df5d99ff5c26161aaffa5ced879742c5.tar.gz
extlib-b2182396df5d99ff5c26161aaffa5ced879742c5.tar.bz2
Fix join_str on musl and add manpage
Diffstat (limited to 'tests/test_join_str.c')
-rw-r--r--tests/test_join_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_join_str.c b/tests/test_join_str.c
index 711c864..f756b2e 100644
--- a/tests/test_join_str.c
+++ b/tests/test_join_str.c
@@ -11,9 +11,9 @@ test_join_str ()
for (int i = 0; i < 3; i++)
test_string[i] = strdup ("hello");
- char *joined_string = join_str (test_string, 3, ' ');
+ char *joined_string = join_str (test_string, 3, " && ");
- if (strcmp (joined_string, "hello hello hello") != 0)
+ if (strcmp (joined_string, "hello && hello && hello") != 0)
errno = 1;
free_secure ((void **) &test_string[0], strlen (test_string[0]));