summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
4 daysMakefile: Add logs for tests and move to assertEkaitz Zarraga
This provides a better log system that more clearly states what went wrong in the test files.
5 daystests: fix formattingEkaitz Zarraga
5 dayspiece-table: piece_table_create_from -> *from_strEkaitz Zarraga
5 daystest: piece-table-internals: Add test and pass itEkaitz Zarraga
Fixes the optimization that avoids adding a new piece when the addition happens in the end of the buffer. Fixes leaks produced in piece_table_optimize
8 dayspiece-table: Better formatting and namingEkaitz Zarraga
8 dayspiece-table: create vs create_from (string)Ekaitz Zarraga
9 dayspiece-table: `piece-table-to-string` add size argEkaitz Zarraga
9 dayspiece-table: Don't allocate in piece_table_to_stringEkaitz Zarraga
`piece_table_to_string` now receives a buffer and we also provide a function that returns the length of the piece table. TODO: the `piece_table_to_string` adds null termination, that makes the buffer needed `piece_table_length(pt) + 1`. This we should document or do more obvious.
9 dayspiece-table: remove print functionalityEkaitz Zarraga
We want to lean more on the debugger world than printf debugging as our data structures are opaque (on purpose).
9 dayspiece-table: delete: Test better and fixesEkaitz Zarraga
10 daysRestart!Ekaitz Zarraga
2024-03-09src: piece-table: Add insert + tests for itEkaitz Zarraga
2024-03-03tests (piece-table): start testingEkaitz Zarraga
2024-02-28First commit with project structureEkaitz Zarraga