Added tests: \n[12].[drt] [ik]3.err

This commit is contained in:
alm 1993-04-13 08:35:55 +00:00
parent 0b6b478b03
commit 0a3cfcaa6e
7 changed files with 23 additions and 17 deletions

View File

@ -19,9 +19,8 @@ done >errs.o 2>&1
# Run the remainding scripts; they exit with zero status
for i in *.ed; do
base=`echo $i | sed 's/\..*//'`
# base=`$ED - <<-EOF
# r !echo $i
# s/\..*
# base=`$ED - \!"echo \\\\$i" <<-EOF
# s/\..*
# EOF`
if $base.ed; then
if cmp -s $base.o $base.r; then :; else

View File

@ -1,3 +1,3 @@
1d
2,3d
2;+1d
$d

3
bin/ed/test/i3.err Normal file
View File

@ -0,0 +1,3 @@
0i
hello world
.

1
bin/ed/test/k3.err Normal file
View File

@ -0,0 +1 @@
0ka

View File

@ -18,21 +18,20 @@ for i in *.t; do
chmod +x $base.ed
# The following is pretty ugly and not appropriate use of ed
# but the point is that it can be done...
# base=`$ED - <<-EOF
# r !echo "$i"
# s/\..*
# base=`$ED - \!"echo \\\\$i" <<-EOF
# s/\..*
# EOF`
# $ED - <<-EOF
# a
# #!/bin/sh -
# $ED - <<\EOT
# r \\$base.d
# w \\$base.o
# EOT
# .
# -2r \\$i
# w \\$base.ed
# !chmod +x \\$base.ed
# a
# #!/bin/sh -
# $ED - <<\EOT
# r \\$base.d
# w \\$base.o
# EOT
# .
# -2r \\$i
# w \\$base.ed
# !chmod +x \\$base.ed
# EOF
done

View File

@ -1,6 +1,8 @@
line 1
line 2
line 3
hello world
line 4
line5

View File

@ -2,5 +2,7 @@
a
hello world
.