Module Name:    src
Committed By:   rillig
Date:           Tue Oct 12 20:52:03 UTC 2021

Modified Files:
        src/tests/usr.bin/indent: token-comment.0 token-comment.0.stdout

Log Message:
tests/indent: test more single-line comments


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/indent/token-comment.0
cvs rdiff -u -r1.11 -r1.12 src/tests/usr.bin/indent/token-comment.0.stdout

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/indent/token-comment.0
diff -u src/tests/usr.bin/indent/token-comment.0:1.9 src/tests/usr.bin/indent/token-comment.0:1.10
--- src/tests/usr.bin/indent/token-comment.0:1.9	Tue Oct 12 19:05:22 2021
+++ src/tests/usr.bin/indent/token-comment.0	Tue Oct 12 20:52:02 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0,v 1.9 2021/10/12 19:05:22 rillig Exp $ */
+/* $NetBSD: token-comment.0,v 1.10 2021/10/12 20:52:02 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -15,6 +15,16 @@
 /* 456789 123456789 123456789 123456789 123456789 123456789 123456789 12345678 */
 /* 456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 */
 
+/* $ In the following comments, the line length is measured after formatting. */
+/* x							. line length 75*/
+/* x							.. line length 76*/
+/* x							... line length 77*/
+/* x							.... line length 78*/
+/* x							..... line length 79*/
+/* x							...... line length 80*/
+/* x							....... line length 81*/
+/* x							........ line length 82*/
+
 /* This is a traditional C block comment. */
 
 // This is a C99 line comment.

Index: src/tests/usr.bin/indent/token-comment.0.stdout
diff -u src/tests/usr.bin/indent/token-comment.0.stdout:1.11 src/tests/usr.bin/indent/token-comment.0.stdout:1.12
--- src/tests/usr.bin/indent/token-comment.0.stdout:1.11	Tue Oct 12 19:05:22 2021
+++ src/tests/usr.bin/indent/token-comment.0.stdout	Tue Oct 12 20:52:02 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0.stdout,v 1.11 2021/10/12 19:05:22 rillig Exp $ */
+/* $NetBSD: token-comment.0.stdout,v 1.12 2021/10/12 20:52:02 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -24,6 +24,29 @@
  * 123456789
  */
 
+/* x							. line length 75 */
+/* x							.. line length 76 */
+/* $ FIXME: the following comment is short enough for a single line. */
+/*
+ * x							... line length 77
+ */
+/* $ FIXME: the following comment is short enough for a single line. */
+/*
+ * x							.... line length 78
+ */
+/*
+ * x							..... line length 79
+ */
+/*
+ * x							...... line length 80
+ */
+/*
+ * x							....... line length 81
+ */
+/*
+ * x							........ line length 82
+ */
+
 /* This is a traditional C block comment. */
 
 // This is a C99 line comment.

Reply via email to