Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/sed t_sed.sh: fix grammar, spelling, and forma...



details:   https://anonhg.NetBSD.org/src/rev/1d9c18050791
branches:  trunk
changeset: 374582:1d9c18050791
user:      gutteridge <gutteridge%NetBSD.org@localhost>
date:      Sat May 06 02:07:42 2023 +0000

description:
t_sed.sh: fix grammar, spelling, and formatting issues (NFC)

diffstat:

 tests/usr.bin/sed/t_sed.sh |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r e244d46b33fd -r 1d9c18050791 tests/usr.bin/sed/t_sed.sh
--- a/tests/usr.bin/sed/t_sed.sh        Fri May 05 15:46:06 2023 +0000
+++ b/tests/usr.bin/sed/t_sed.sh        Sat May 06 02:07:42 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_sed.sh,v 1.9 2021/11/07 20:31:09 andvar Exp $
+# $NetBSD: t_sed.sh,v 1.10 2023/05/06 02:07:42 gutteridge Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -31,7 +31,7 @@
 atf_test_case c2048
 c2048_head() {
        atf_set "descr" "Test that sed(1) does not fail when the " \
-                       "2048'th character is a backslash (PR bin/25899)"
+                       "2048th character is a backslash (PR bin/25899)"
 }
 
 c2048_body() {
@@ -81,7 +81,7 @@ rangeselection_body() {
                -x "printf 'A\nB\nC\nD\n' | sed '1,3d'"
        atf_check -o inline:"A\n" \
                -x "printf 'A\nB\nC\nD\n' | sed '2,4d'"
-       # two nonoverlapping ranges
+       # two non-overlapping ranges
        atf_check -o inline:"C\n" \
                -x "printf 'A\nB\nC\nD\nE\n' | sed '1,2d;4,5d'"
        # overlapping ranges; the first prevents the second from being entered
@@ -98,7 +98,7 @@ rangeselection_body() {
                -x "printf 'A\nB\nC\nD\n' | sed '/A/,/C/d'"
        atf_check -o inline:"A\n" \
                -x "printf 'A\nB\nC\nD\n' | sed '/B/,/D/d'"
-       # two nonoverlapping ranges
+       # two non-overlapping ranges
        atf_check -o inline:"C\n" \
                -x "printf 'A\nB\nC\nD\nE\n' | sed '/A/,/B/d;/D/,/E/d'"
        # two overlapping ranges; the first blocks the second as above
@@ -174,6 +174,7 @@ escapes_in_re_bracket_body() {
        atf_check -o inline:"foo    bar\n" \
                -x 'echo "foo\\d88bar" | sed -e "s/[\d88]/ /g"'
 }
+
 atf_init_test_cases() {
        atf_add_test_case c2048
        atf_add_test_case emptybackref



Home | Main Index | Thread Index | Old Index