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: extend tests for strings ...
details: https://anonhg.NetBSD.org/src/rev/16ac97c8c6f9
branches: trunk
changeset: 1023738:16ac97c8c6f9
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Sep 25 09:52:21 2021 +0000
description:
tests/indent: extend tests for strings and characters
diffstat:
tests/usr.bin/indent/lex_char.0 | 5 ++++-
tests/usr.bin/indent/lex_char.0.stdout | 5 ++++-
tests/usr.bin/indent/lex_string.0 | 5 ++++-
tests/usr.bin/indent/lex_string.0.stdout | 5 ++++-
4 files changed, 16 insertions(+), 4 deletions(-)
diffs (70 lines):
diff -r 271b2b858094 -r 16ac97c8c6f9 tests/usr.bin/indent/lex_char.0
--- a/tests/usr.bin/indent/lex_char.0 Sat Sep 25 09:46:29 2021 +0000
+++ b/tests/usr.bin/indent/lex_char.0 Sat Sep 25 09:52:21 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex_char.0,v 1.1 2021/09/25 09:46:29 rillig Exp $ */
+/* $NetBSD: lex_char.0,v 1.2 2021/09/25 09:52:21 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -17,3 +17,6 @@
int escape_n = '\n';
int escape_t = '\t';
int escape_v = '\v';
+int escape_single_quote = '\'';
+int escape_double_quote = '\"';
+int escape_backslash = '\\';
diff -r 271b2b858094 -r 16ac97c8c6f9 tests/usr.bin/indent/lex_char.0.stdout
--- a/tests/usr.bin/indent/lex_char.0.stdout Sat Sep 25 09:46:29 2021 +0000
+++ b/tests/usr.bin/indent/lex_char.0.stdout Sat Sep 25 09:52:21 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex_char.0.stdout,v 1.1 2021/09/25 09:46:29 rillig Exp $ */
+/* $NetBSD: lex_char.0.stdout,v 1.2 2021/09/25 09:52:21 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -17,3 +17,6 @@
int escape_n = '\n';
int escape_t = '\t';
int escape_v = '\v';
+int escape_single_quote = '\'';
+int escape_double_quote = '\"';
+int escape_backslash = '\\';
diff -r 271b2b858094 -r 16ac97c8c6f9 tests/usr.bin/indent/lex_string.0
--- a/tests/usr.bin/indent/lex_string.0 Sat Sep 25 09:46:29 2021 +0000
+++ b/tests/usr.bin/indent/lex_string.0 Sat Sep 25 09:52:21 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex_string.0,v 1.1 2021/09/25 09:46:29 rillig Exp $ */
+/* $NetBSD: lex_string.0,v 1.2 2021/09/25 09:52:21 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -17,6 +17,9 @@
char escape_n[] = "\n";
char escape_t[] = "\t";
char escape_v[] = "\v";
+char escape_single_quote[] = "\'";
+char escape_double_quote[] = "\"";
+char escape_backslash[] = "\\";
char escape_newline[] = "\
";
diff -r 271b2b858094 -r 16ac97c8c6f9 tests/usr.bin/indent/lex_string.0.stdout
--- a/tests/usr.bin/indent/lex_string.0.stdout Sat Sep 25 09:46:29 2021 +0000
+++ b/tests/usr.bin/indent/lex_string.0.stdout Sat Sep 25 09:52:21 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex_string.0.stdout,v 1.1 2021/09/25 09:46:29 rillig Exp $ */
+/* $NetBSD: lex_string.0.stdout,v 1.2 2021/09/25 09:52:21 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -17,6 +17,9 @@
char escape_n[] = "\n";
char escape_t[] = "\t";
char escape_v[] = "\v";
+char escape_single_quote[] = "\'";
+char escape_double_quote[] = "\"";
+char escape_backslash[] = "\\";
char escape_newline[] = "\
";
Home |
Main Index |
Thread Index |
Old Index