diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-08-12 14:20:08 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-08-12 14:20:32 +0200 |
commit | c44028b6076a021c0f23e761add8067b3cd22567 (patch) | |
tree | 54b428526605b64183c0640e30e70f60b77ccd5a /tests/piece-table-insert.c | |
parent | 5dd98385e03b9cc7c912b1b50f7c406df117a9af (diff) |
piece-table: `piece-table-to-string` add size arg
Diffstat (limited to 'tests/piece-table-insert.c')
-rw-r--r-- | tests/piece-table-insert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/piece-table-insert.c b/tests/piece-table-insert.c index bcf6dc5..54ff842 100644 --- a/tests/piece-table-insert.c +++ b/tests/piece-table-insert.c @@ -9,17 +9,17 @@ main() char tmp[100]; piece_table_insert(pt, 10, "abcdefgh", 8); - piece_table_to_string(pt, tmp); + piece_table_to_string(pt, tmp, 99); if (strcmp(tmp, "0123456789abcdefgh")) return 1; piece_table_insert(pt, 18, "abcdefgh", 8); - piece_table_to_string(pt, tmp); + piece_table_to_string(pt, tmp, 99); if (strcmp(tmp, "0123456789abcdefghabcdefgh")) return 2; piece_table_insert(pt, 4, "abcdefgh", 8); - piece_table_to_string(pt, tmp); + piece_table_to_string(pt, tmp, 99); if (strcmp(tmp, "0123abcdefgh456789abcdefghabcdefgh")) return 3; |