|
|
|
|
|
by lambdadmitry
1304 days ago
|
|
Thing is, for something like an AST parser you want a property test, not a bunch of autogenerated boilerplate. Generally, if something is boring and repetitive it's probably shouldn't be written, better code generation is rarely a good answer. |
|
I suppose you could test "if I convert the AST back to a string do I get the same result", but that's not actually your goal with an Abstract Syntax Tree. If nothing else the white space should be allowed to change.
What sort of property tests did you have in mind?