diff options
Diffstat (limited to 'tests')
| -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) { |
