Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
tests/indent: condense the token tests This reduces the number of files in the test directory. It also allows the tests to be read from top to bottom, looking at only a single file. Since t_options.awk complains about files that don't have any test case at all, add some test for each token kind. Most of the tests had previously been effectively empty.
tests/indent: test tokenization of punctuation, mainly operators
tests/indent: add test templates for testing specific parser symbols The basic idea of indent is to split the input into tokens and then reassemble them, reformatting them on the way. These tokens determine how the output is formatted, therefore add tests for each of the terminal tokens and nonterminal parser symbols, to cover more common cases, and edge cases as well.