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: add another test for -eei...
details: https://anonhg.NetBSD.org/src/rev/6eef49449d2e
branches: trunk
changeset: 375347:6eef49449d2e
user: rillig <rillig%NetBSD.org@localhost>
date: Mon May 15 13:28:05 2023 +0000
description:
tests/indent: add another test for -eei -nlp
diffstat:
tests/usr.bin/indent/opt_eei.c | 29 ++++++++++++++++++++++++++++-
1 files changed, 28 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 49dca9eabba0 -r 6eef49449d2e tests/usr.bin/indent/opt_eei.c
--- a/tests/usr.bin/indent/opt_eei.c Mon May 15 12:59:43 2023 +0000
+++ b/tests/usr.bin/indent/opt_eei.c Mon May 15 13:28:05 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opt_eei.c,v 1.10 2023/05/15 12:59:43 rillig Exp $ */
+/* $NetBSD: opt_eei.c,v 1.11 2023/05/15 13:28:05 rillig Exp $ */
/*
* Tests for the options '-eei' and '-neei'.
@@ -160,3 +160,30 @@ b)
stmt();
}
//indent end
+
+
+/*
+ * Ensure that after a condition with extra indentation, the following
+ * statements are not affected.
+ */
+//indent input
+{
+ if (
+ cond
+ )
+ stmt(
+ arg
+ );
+}
+//indent end
+
+//indent run -eei -nlp -i4
+{
+ if (
+ cond
+ )
+ stmt(
+ arg
+ );
+}
+//indent end
Home |
Main Index |
Thread Index |
Old Index