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 a chao...



details:   https://anonhg.NetBSD.org/src/rev/89871083d05d
branches:  trunk
changeset: 988667:89871083d05d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Oct 08 22:11:26 2021 +0000

description:
tests/indent: test formatting of a chaotic boxed comment

diffstat:

 tests/usr.bin/indent/token-comment.0        |  14 +++++++++++++-
 tests/usr.bin/indent/token-comment.0.stdout |  11 ++++++++++-
 2 files changed, 23 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r dbf131e26d37 -r 89871083d05d tests/usr.bin/indent/token-comment.0
--- a/tests/usr.bin/indent/token-comment.0      Fri Oct 08 22:07:11 2021 +0000
+++ b/tests/usr.bin/indent/token-comment.0      Fri Oct 08 22:11:26 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0,v 1.5 2021/10/05 21:01:10 rillig Exp $ */
+/* $NetBSD: token-comment.0,v 1.6 2021/10/08 22:11:26 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -139,3 +139,15 @@
 void indent_still_on ( void ) ;        /* due to the colon in the middle */
 /* INDENT OFF */               /* extra comment */
 void indent_still_on ( void ) ;        /* due to the extra comment to the right */
+
+/*
+        * this
+                * is a boxed
+                        * staircase.
+*
+* Its paragraphs get wrapped.
+
+There may also be
+               lines without asterisks.
+
+ */
diff -r dbf131e26d37 -r 89871083d05d tests/usr.bin/indent/token-comment.0.stdout
--- a/tests/usr.bin/indent/token-comment.0.stdout       Fri Oct 08 22:07:11 2021 +0000
+++ b/tests/usr.bin/indent/token-comment.0.stdout       Fri Oct 08 22:11:26 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0.stdout,v 1.6 2021/10/05 21:01:10 rillig Exp $ */
+/* $NetBSD: token-comment.0.stdout,v 1.7 2021/10/08 22:11:26 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -151,3 +151,12 @@
 /* INDENT OFF *//* extra comment */
 void
 indent_still_on(void);         /* due to the extra comment to the right */
+
+/*
+ * this is a boxed staircase.
+ *
+ * Its paragraphs get wrapped.
+ *
+ * There may also be lines without asterisks.
+ *
+ */



Home | Main Index | Thread Index | Old Index