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: fix test for form feed



details:   https://anonhg.NetBSD.org/src/rev/edcd3ab1a854
branches:  trunk
changeset: 1024877:edcd3ab1a854
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 07 18:38:34 2021 +0000

description:
tests/indent: fix test for form feed

Previously, I had written a vertical tab instead of a form feed, which
had a different effect.

diffstat:

 tests/usr.bin/indent/token_form_feed.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5f61d10bac1a -r edcd3ab1a854 tests/usr.bin/indent/token_form_feed.c
--- a/tests/usr.bin/indent/token_form_feed.c    Sun Nov 07 18:26:17 2021 +0000
+++ b/tests/usr.bin/indent/token_form_feed.c    Sun Nov 07 18:38:34 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token_form_feed.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
+/* $NetBSD: token_form_feed.c,v 1.2 2021/11/07 18:38:34 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -7,8 +7,15 @@
 
 #indent input
 void function_1(void);
-
+
 void function_2(void);
 #indent end
 
-#indent run-equals-input -di0
+#indent run -di0
+void function_1(void);
+
+/* $ XXX: The form feed is not preserved. */
+/* $ XXX: Why 2 empty lines? */
+
+void function_2(void);
+#indent end



Home | Main Index | Thread Index | Old Index