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 long comments in sin...



details:   https://anonhg.NetBSD.org/src/rev/e0572afb1fd7
branches:  trunk
changeset: 1024245:e0572afb1fd7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Oct 13 23:03:10 2021 +0000

description:
tests/indent: test long comments in single line

I had expected them to differ depending on the option '-[n]fc1', but
they look exactly the same. There are several possibilities for the
leading space in the output.

diffstat:

 tests/usr.bin/indent/opt-fc1.0         |  6 +++++-
 tests/usr.bin/indent/opt-fc1.0.stdout  |  7 ++++++-
 tests/usr.bin/indent/opt-nfc1.0        |  6 +++++-
 tests/usr.bin/indent/opt-nfc1.0.stdout |  7 ++++++-
 4 files changed, 22 insertions(+), 4 deletions(-)

diffs (70 lines):

diff -r 7a770c08b844 -r e0572afb1fd7 tests/usr.bin/indent/opt-fc1.0
--- a/tests/usr.bin/indent/opt-fc1.0    Wed Oct 13 22:38:02 2021 +0000
+++ b/tests/usr.bin/indent/opt-fc1.0    Wed Oct 13 23:03:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opt-fc1.0,v 1.4 2021/09/25 18:02:48 rillig Exp $ */
+/* $NetBSD: opt-fc1.0,v 1.5 2021/10/13 23:03:10 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -30,3 +30,7 @@
  *//* followed by another multi-line comment
  * that starts in column 4.
  */
+
+/* comment */ int decl2; /* comment */
+/* looooooooooooooooooooooooooooooooooooooooong first comment */ int decl2; /* second comment */
+/* first comment */ int decl2; /* looooooooooooooooooooooooooooooooooooooooong second comment */
diff -r 7a770c08b844 -r e0572afb1fd7 tests/usr.bin/indent/opt-fc1.0.stdout
--- a/tests/usr.bin/indent/opt-fc1.0.stdout     Wed Oct 13 22:38:02 2021 +0000
+++ b/tests/usr.bin/indent/opt-fc1.0.stdout     Wed Oct 13 23:03:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opt-fc1.0.stdout,v 1.4 2021/09/25 18:02:48 rillig Exp $ */
+/* $NetBSD: opt-fc1.0.stdout,v 1.5 2021/10/13 23:03:10 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -29,3 +29,8 @@
  * followed by another multi-line comment that starts in column 4.
  */
 /* $ XXX: The two comments have been merged into a single comment. */
+
+ /* comment */ int decl2;      /* comment */
+ /* looooooooooooooooooooooooooooooooooooooooong first comment */ int decl2;   /* second comment */
+ /* first comment */ int decl2;        /* looooooooooooooooooooooooooooooooooooooooong
+                                * second comment */
diff -r 7a770c08b844 -r e0572afb1fd7 tests/usr.bin/indent/opt-nfc1.0
--- a/tests/usr.bin/indent/opt-nfc1.0   Wed Oct 13 22:38:02 2021 +0000
+++ b/tests/usr.bin/indent/opt-nfc1.0   Wed Oct 13 23:03:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opt-nfc1.0,v 1.4 2021/09/25 18:02:48 rillig Exp $ */
+/* $NetBSD: opt-nfc1.0,v 1.5 2021/10/13 23:03:10 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -30,3 +30,7 @@
  *//* followed by another multi-line comment
  * that starts in column 4.
  */
+
+/* comment */ int decl2; /* comment */
+/* looooooooooooooooooooooooooooooooooooooooong first comment */ int decl2; /* second comment */
+/* first comment */ int decl2; /* looooooooooooooooooooooooooooooooooooooooong second comment */
diff -r 7a770c08b844 -r e0572afb1fd7 tests/usr.bin/indent/opt-nfc1.0.stdout
--- a/tests/usr.bin/indent/opt-nfc1.0.stdout    Wed Oct 13 22:38:02 2021 +0000
+++ b/tests/usr.bin/indent/opt-nfc1.0.stdout    Wed Oct 13 23:03:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opt-nfc1.0.stdout,v 1.4 2021/09/25 18:02:48 rillig Exp $ */
+/* $NetBSD: opt-nfc1.0.stdout,v 1.5 2021/10/13 23:03:10 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -44,3 +44,8 @@
   * followed by another multi-line comment that starts in column 4.
   */
 /* $ XXX: The two comments have been merged into a single comment. */
+
+ /* comment */ int decl2;      /* comment */
+ /* looooooooooooooooooooooooooooooooooooooooong first comment */ int decl2;   /* second comment */
+ /* first comment */ int decl2;        /* looooooooooooooooooooooooooooooooooooooooong
+                                * second comment */



Home | Main Index | Thread Index | Old Index