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/fcc1cf247d72
branches:  trunk
changeset: 1024063:fcc1cf247d72
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 cba486baf3b8 -r fcc1cf247d72 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 cba486baf3b8 -r fcc1cf247d72 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