Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
tests/indent: condense tests for bool options Previously, each bool option such as '-bacc/-nbacc' had 6 test files: input, options, output for the positive and negative option. Splitting this test data into separate files made it harder than necessary to quickly compare the test output from '-bacc' with that of '-nbacc'. Have a single test for the positive and negative option, allowing several tests to run on the same input with different options. This commit only contains the rather mechanic changes of concatenating the previous test files and inserting the '#indent' directives, which are documented in t_options.sh. Removing duplicate input sections, as well as other cleanups will follow soon. No functional change.
tests/indent: test long comments in single line I had expected them to differ depending on the option '-[n]fc1', but they look exactly the same. There are several possibilities for the leading space in the output.
tests/indent: demonstrate mergin of comments This may or may not have been intended. Especially with the option '-nfc1' the result looks confusing. It's not a case that occurs every day, though.
tests/indent: demonstrate inconsistent formatting of comments
tests/indent: add 17 more tests, found only a single new bug Discovering one bug in 17 command line options is acceptable. This compensates the bad first impression I got in the previous batch of tests, which consisted of 11 tests and found 8 bugs.
tests/indent: add templates for options tests Given that indent "has even more switches than ls(1)", there are far too few tests. To make it easier to add meaningful tests for each of the options, add the templates for the tests right now, ready to be filled in.