summaryrefslogtreecommitdiff
path: root/tests/piece-table-insert.c
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2025-08-15 23:44:49 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2025-08-15 23:44:49 +0200
commit1f2e65cd2e2120a44f353cc4ef99be65597bdaf8 (patch)
treedbac9708a8d73826db6a05993052e8840e9845b4 /tests/piece-table-insert.c
parente1968a6b9a055e3cc1b269beb53a773afa20ee02 (diff)
tests: fix formatting
Diffstat (limited to 'tests/piece-table-insert.c')
-rw-r--r--tests/piece-table-insert.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/piece-table-insert.c b/tests/piece-table-insert.c
index 8a21435..2f2ef38 100644
--- a/tests/piece-table-insert.c
+++ b/tests/piece-table-insert.c
@@ -5,24 +5,24 @@
int
main()
{
- piece_table *pt = piece_table_create_from_str("0123456789", 10);
+ piece_table *pt = piece_table_create_from_str ("0123456789", 10);
char tmp[100];
- piece_table_insert(pt, 10, "abcdefgh", 8);
- piece_table_to_string(pt, tmp, 99);
- if (strcmp(tmp, "0123456789abcdefgh"))
+ piece_table_insert (pt, 10, "abcdefgh", 8);
+ 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, 99);
- if (strcmp(tmp, "0123456789abcdefghabcdefgh"))
+ piece_table_insert (pt, 18, "abcdefgh", 8);
+ 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, 99);
- if (strcmp(tmp, "0123abcdefgh456789abcdefghabcdefgh"))
+ piece_table_insert (pt, 4, "abcdefgh", 8);
+ piece_table_to_string (pt, tmp, 99);
+ if (strcmp (tmp, "0123abcdefgh456789abcdefghabcdefgh"))
return 3;
- piece_table_destroy(pt);
+ piece_table_destroy (pt);
return 0;
}