langcc
langcc copied to clipboard
Add quickcheck tests for printer and parser
Would be nice to automatically generate some tests with a quickcheck implementation such as https://github.com/emil-e/rapidcheck
One could generate some AST, print it, parse the source code and check if the AST still matches
I don't want to pull in yet another dependency, but for what it's worth, the lang unit tests already do the inverse of this for many inline examples: i.e., they test that PrettyPrint(Parse(str)) == str.