The NetBSD Project

CVS log for src/tests/usr.bin/indent/Attic/token-comment.0

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13, Mon Oct 18 19:36:30 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED

tests/indent: consolidate tests for comments

These tests have been the motivation for t_options.sh, which allows to
run indent with various command line options on the same input, without
having to create 3 files per test case.

A test file actually contains several tests, all separated by '#indent'
directives. Isolating each of these tests is simpler than having to pick
up the corresponding sections from 3 separate files. Running indent on
each small test case isolates the test cases from each other, preventing
them to influence later test cases. Exactly this had happened when
support for C99 comments was added in March 2021, which later turned
out to be done wrong.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 14 20:00:59 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.11: +42 -1 lines
Diff to previous 1.11 (colored)

tests/indent: test comment to the right, collect more useful tests

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 12 21:08:37 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.10: +5 -1 lines
Diff to previous 1.10 (colored)

indent: fix formatting of single-line comments (since today)

The change in pr_comment.c 1.70 from 3 hours ago did not cover all edge
cases correctly. Now it works for comments that are aligned with tabs.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 12 20:52:02 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.9: +11 -1 lines
Diff to previous 1.9 (colored)

tests/indent: test more single-line comments

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 12 19:05:22 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.8: +8 -1 lines
Diff to previous 1.8 (colored)

tests/indent: test formatting of long single-line code comments

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 12 18:54:56 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.7: +11 -1 lines
Diff to previous 1.7 (colored)

tests/indent: test long code comments

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 8 23:53:37 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.6: +9 -1 lines
Diff to previous 1.6 (colored)

tests/indent: demonstrate spaces around comment

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 8 22:11:26 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.5: +13 -1 lines
Diff to previous 1.5 (colored)

tests/indent: test formatting of a chaotic boxed comment

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 5 21:01:10 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.4: +22 -1 lines
Diff to previous 1.4 (colored)

tests/indent: test INDENT comments

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 5 18:21:03 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.3: +21 -1 lines
Diff to previous 1.3 (colored)

tests/indent: test indentation of nested declarations and statements

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 5 18:09:13 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.2: +87 -3 lines
Diff to previous 1.2 (colored)

indent: test various forms of comments

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 14 00:50:39 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.1: +7 -1 lines
Diff to previous 1.1 (colored)

tests/indent: demonstrate off-by-one error in comment processing

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 12 00:13:06 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>