Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.14, Sun Apr 24 10:36:37 2022 UTC (9 months ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1
lines
FILE REMOVED
tests/indent: migrate token tests to other tests In indent.h 1.49 from 2021-10-25, the enumeration token_type was split into lexer_symbol and parser_symbol to more clearly express that these tokens fall into completely different classes of usage patterns.
Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 24 09:04:12 2022 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.12: +19 -19
lines
Diff to previous 1.12 (colored)
tests/indent: change directive from '#' to '//' Using a '//' instead of '#' turns the directives into well-formed C code, resulting in fewer error markers in the editor.
Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 23 17:25:58 2022 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.11: +4 -14
lines
Diff to previous 1.11 (colored)
tests/indent: add tests for unary and binary operators
Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 23 09:35:26 2022 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.10: +1 -89
lines
Diff to previous 1.10 (colored)
tests/indent: migrate tests for unary and binary operators
Revision 1.10 / (download) - annotate - [select for diffs], Fri Apr 22 21:21:20 2022 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.9: +1 -2
lines
Diff to previous 1.9 (colored)
indent: remove FreeBSD IDs Most of the IDs were empty anyway.
Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 20 16:54:17 2021 UTC (14 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.8: +44 -61
lines
Diff to previous 1.8 (colored)
tests/indent: clean up and extend tests
Revision 1.8 / (download) - annotate - [select for diffs], Sat Nov 20 11:13:18 2021 UTC (14 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.7: +2 -1
lines
Diff to previous 1.7 (colored)
tests/indent: normalize empty lines in tests
Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 4 17:12:12 2021 UTC (14 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.6: +2 -2
lines
Diff to previous 1.6 (colored)
indent: fix joining of adjacent unary '+' operators
Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 30 22:36:07 2021 UTC (14 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
indent: rename prev_newline and prev_col_1 to curr These two flags describe the token that is currently processed. In process_binary_op, curr_newline can never be true since newline is not a binary operator, so remove that condition. No functional change.
Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 29 22:37:25 2021 UTC (14 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.4: +28 -1
lines
Diff to previous 1.4 (colored)
tests/indent: test binary operators for tokens in column 1
Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 29 21:56:36 2021 UTC (14 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +14 -10
lines
Diff to previous 1.3 (colored)
indent: fix missing blank before binary operator
Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 26 22:00:38 2021 UTC (15 months ago) by rillig
Branch: MAIN
Changes since 1.2: +10 -3
lines
Diff to previous 1.2 (colored)
tests/indent: document cause for missing space between ')' and '='
Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 26 21:45:16 2021 UTC (15 months ago) by rillig
Branch: MAIN
Changes since 1.1: +11 -1
lines
Diff to previous 1.1 (colored)
tests/indent: demonstrate missing space before '=' Reported by RVP via private mail. Broken since the import of FreeBSD indent in 2019. indent-2000.10.11.14.46.04 | char *(*fn) (int) = NULL; indent-2019.02.03.03.19.29 indent-2019.04.04.15.27.35 | char *(* fn) (int)= NULL; indent-2021.09.30.21.38.43 indent-2021.09.30.21.48.12 | char *(* fn)(int)= NULL;
Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 18 22:30:34 2021 UTC (15 months, 1 week ago) by rillig
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.