From 4b399ecfe921bc276086f55d4038caa887925c59 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 26 Aug 2026 21:10:55 +0300 Subject: slightly increase test coverage, hah --- tests/sp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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) { -- cgit v1.3