summaryrefslogtreecommitdiff
path: root/src/test.c
AgeCommit message (Collapse)Author
2023-07-21Add variations to the testJSDurand
Add an intentionally ambiguous grammar for testing purposes. It seems to work fine.
2023-07-18test.c: Save the forest to a file.JSDurand
This is not of much use right now, but can be helpful later.
2023-07-16Fix the bug of forgetting to check cloned nodes.JSDurand
In the process of splitting, cloning, and planting the forest, I forgot to check whether some cloned node of the node inquestion satisfy the condition. This used to cause forests that violate some fundamental assumptions. Now this is supposed to be fixed, but more tests await us.
2023-07-15test.c: I forgot to check if a malloc fails.JSDurand
* src/test.c: input is a malloc'ed pointer, which can be NULL due to malloc not being able to allocate enough memory. So I have to guard against this possibility. Aside: Why are some intermediate files added again?
2023-07-08Finished the Emacs binding.JSDurand
Now the binding part is finished. What remains is a bug encountered when planting a fragment to the forest which intersects a packed node, which would lead to invalid forests. This will also cause problem when planting a packed fragment, but until now my testing grammars do not produce packed fragments, so this problem is not encountered yet. I am still figuring out efficient ways to solve this problem.