summaryrefslogtreecommitdiff
path: root/tests/piece-table-delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/piece-table-delete.c')
-rw-r--r--tests/piece-table-delete.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/piece-table-delete.c b/tests/piece-table-delete.c
new file mode 100644
index 0000000..e46753a
--- /dev/null
+++ b/tests/piece-table-delete.c
@@ -0,0 +1,10 @@
+#include "../src/piece-table.h"
+
+int main() {
+ piece_table pt;
+ init_piece_table(&pt, "1234567890");
+ delete_piece_table(&pt, 0, 10);
+ print_piece_table(&pt);
+ free_piece_table(&pt);
+ return 0;
+}