Closed knrafto closed 7 years ago
One option: round-trip testing by generating syntax trees, pretty-printing them, and parsing them. But this doesn't test one element at a time or every possible variation of Bash syntax.
There's now a fairly respectable test suite thanks to @pbiggar.
One option: round-trip testing by generating syntax trees, pretty-printing them, and parsing them. But this doesn't test one element at a time or every possible variation of Bash syntax.