aboutsummaryrefslogtreecommitdiff
path: root/tests/test_join_str.c
diff options
context:
space:
mode:
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]));