Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/indent tests/indent: test formatting of long s...



details:   https://anonhg.NetBSD.org/src/rev/fd375526790d
branches:  trunk
changeset: 1024218:fd375526790d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Oct 12 19:05:22 2021 +0000

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

diffstat:

 tests/usr.bin/indent/token-comment.0        |   9 ++++++++-
 tests/usr.bin/indent/token-comment.0.stdout |  10 +++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r a3a0c46903b7 -r fd375526790d tests/usr.bin/indent/token-comment.0
--- a/tests/usr.bin/indent/token-comment.0      Tue Oct 12 18:54:56 2021 +0000
+++ b/tests/usr.bin/indent/token-comment.0      Tue Oct 12 19:05:22 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0,v 1.8 2021/10/12 18:54:56 rillig Exp $ */
+/* $NetBSD: token-comment.0,v 1.9 2021/10/12 19:05:22 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -97,6 +97,13 @@
        code();                 /* code comment ____________ to line length 81 */
        code();                 /* code comment _____________ to line length 82 */
 
+/* $ In the following comments, the line length is measured after formatting. */
+       code();                 /* code comment _________ to line length 78*/
+       code();                 /* code comment __________ to line length 79*/
+       code();                 /* code comment ___________ to line length 80*/
+       code();                 /* code comment ____________ to line length 81*/
+       code();                 /* code comment _____________ to line length 82*/
+
        code();                 /* short
                                 * multi-line
                                 * code
diff -r a3a0c46903b7 -r fd375526790d tests/usr.bin/indent/token-comment.0.stdout
--- a/tests/usr.bin/indent/token-comment.0.stdout       Tue Oct 12 18:54:56 2021 +0000
+++ b/tests/usr.bin/indent/token-comment.0.stdout       Tue Oct 12 19:05:22 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0.stdout,v 1.10 2021/10/12 18:54:56 rillig Exp $ */
+/* $NetBSD: token-comment.0.stdout,v 1.11 2021/10/12 19:05:22 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -102,6 +102,14 @@
        code();                 /* code comment _____________ to line length
                                 * 82 */
 
+/* $ In the following comments, the line length is measured after formatting. */
+       code();                 /* code comment _________ to line length 78 */
+       code();                 /* code comment __________ to line length 79 */
+       code();                 /* code comment ___________ to line length 80 */
+       code();                 /* code comment ____________ to line length 81 */
+       code();                 /* code comment _____________ to line length
+                                * 82 */
+
        code();                 /* short multi-line code comment */
 
        code();                 /* long single-line code comment that is



Home | Main Index | Thread Index | Old Index