summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2003-11-11 09:18:21 +0000
committerotto <otto@openbsd.org>2003-11-11 09:18:21 +0000
commitaf260db2d1812831f387bef479ddfbc42165f386 (patch)
treeb11a8d6e6f789f8a4088741395a9bb248c8ed05a
parentDocument new 'print' statement, plus some tweaks. (diff)
downloadwireguard-openbsd-af260db2d1812831f387bef479ddfbc42165f386.tar.xz
wireguard-openbsd-af260db2d1812831f387bef479ddfbc42165f386.zip
Test print statement.
-rw-r--r--regress/usr.bin/bc/Makefile5
-rw-r--r--regress/usr.bin/bc/t12.in5
-rw-r--r--regress/usr.bin/bc/t12.out7
3 files changed, 15 insertions, 2 deletions
diff --git a/regress/usr.bin/bc/Makefile b/regress/usr.bin/bc/Makefile
index 913942f492f..75eaeaeb1b8 100644
--- a/regress/usr.bin/bc/Makefile
+++ b/regress/usr.bin/bc/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.4 2003/10/22 12:26:43 otto Exp $
+# $OpenBSD: Makefile,v 1.5 2003/11/11 09:18:21 otto Exp $
BC=bc
-REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11
+REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12
# .in: input file
# .out: desired result
@@ -18,6 +18,7 @@ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11
# t9: more continue
# t10: for with empty E's
# t11: if else
+# t12: print
all: clean ${REGRESS_TARGET}
diff --git a/regress/usr.bin/bc/t12.in b/regress/usr.bin/bc/t12.in
new file mode 100644
index 00000000000..85c9355a5c5
--- /dev/null
+++ b/regress/usr.bin/bc/t12.in
@@ -0,0 +1,5 @@
+print 1,.,1+1,"",3
+"X\Y"
+print "\a\b\t\f\n\q\ra\\b[]
+foo"
+.
diff --git a/regress/usr.bin/bc/t12.out b/regress/usr.bin/bc/t12.out
new file mode 100644
index 00000000000..ae2f819a4c1
--- /dev/null
+++ b/regress/usr.bin/bc/t12.out
@@ -0,0 +1,7 @@
+ 1dds.nl.dds.n 1 1+dds.n[]dn 3dds.n
+[X\\Y]P
+[
+" a\\b\[\]
+foo]dn
+l.ps.
+q \ No newline at end of file