summaryrefslogtreecommitdiff
path: root/tests/sp.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-08-26 21:10:55 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-08-26 21:10:55 +0300
commit4b399ecfe921bc276086f55d4038caa887925c59 (patch)
treebb3408b02d298826f36d656bad68aa76f35893ea /tests/sp.c
parenta6bf8cea4bebab12ff3c279a798870775a7c7abf (diff)
downloadconts-4b399ecfe921bc276086f55d4038caa887925c59.tar.gz
conts-4b399ecfe921bc276086f55d4038caa887925c59.zip
slightly increase test coverage, hahHEADmaster
Diffstat (limited to 'tests/sp.c')
-rw-r--r--tests/sp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sp.c b/tests/sp.c
index 369e376..f682885 100644
--- a/tests/sp.c
+++ b/tests/sp.c
@@ -48,14 +48,14 @@ int main()
/* now we should switch over to the dynamic buffer, as we have more
* characters than can fit in any regular pointer type (3 for 32bit, 7
* for 64 bit, 15 for stuff like Cheri), might fail */
- if (sp_append_str(&sp, "4567890ABCDEFG")) {
+ if (sp_append_str(&sp, "4567890ABCDEFGH")) {
fprintf(stderr, "failed appending to string buffer");
sp_destroy(&sp);
return -1;
}
/* same deal, check that we're using the dynamic buffer */
- assert(strcmp(sp.p, "1234567890ABCDEFG") == 0);
+ assert(strcmp(sp.p, "1234567890ABCDEFGH") == 0);
/* test dynamic iteration */
foreach(sp, c, &sp) {