summaryrefslogtreecommitdiff
path: root/tests/piece-table-print.c
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-03-03 22:28:20 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-03-03 22:28:58 +0100
commit44797c4c252a01870745bfbb69cbfed8075687aa (patch)
treed9f139c9ba593ff3d511e6070b7914f20e1cae98 /tests/piece-table-print.c
parent633f31dc69cb0480ecc800fe2b671f0b63db3884 (diff)
tests (piece-table): start testing
Diffstat (limited to 'tests/piece-table-print.c')
-rw-r--r--tests/piece-table-print.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/piece-table-print.c b/tests/piece-table-print.c
new file mode 100644
index 0000000..2b927be
--- /dev/null
+++ b/tests/piece-table-print.c
@@ -0,0 +1,9 @@
+#include "../src/piece-table.h"
+
+int main() {
+ piece_table pt;
+ init_piece_table(&pt, "Hola esto es un texto de prueba");
+ print_piece_table(&pt);
+ free_piece_table(&pt);
+ return 0;
+}