diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-08-26 21:10:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-08-26 21:10:55 +0300 |
| commit | 4b399ecfe921bc276086f55d4038caa887925c59 (patch) | |
| tree | bb3408b02d298826f36d656bad68aa76f35893ea /tests/sp.c | |
| parent | a6bf8cea4bebab12ff3c279a798870775a7c7abf (diff) | |
| download | conts-master.tar.gz conts-master.zip | |
Diffstat (limited to 'tests/sp.c')
| -rw-r--r-- | tests/sp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |
