summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-11-06 19:50:05 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-11-06 19:50:05 +0000
commit98fd84149f579f54527a8d3cab80987ba2a03c52 (patch)
tree48292e12383be1c19a60e8b510561608c559fc0c /regress
parent9d7385b3f2fd17d4f6d71b11b496e6d1525a2608 (diff)
Test #, n, and a.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/dc/Makefile5
-rw-r--r--regress/usr.bin/dc/t13.in15
-rw-r--r--regress/usr.bin/dc/t13.out1
3 files changed, 19 insertions, 2 deletions
diff --git a/regress/usr.bin/dc/Makefile b/regress/usr.bin/dc/Makefile
index 2ba690412cb..6a951dfe297 100644
--- a/regress/usr.bin/dc/Makefile
+++ b/regress/usr.bin/dc/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.4 2003/11/04 08:11:41 otto Exp $
+# $OpenBSD: Makefile,v 1.5 2003/11/06 19:50:04 otto Exp $
DC=dc
-REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 t11 t12
+REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13
# .in: input file
# .out: desired result
@@ -18,6 +18,7 @@ REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 t11 t12
# t10: test J and M operators
# t11: test extended comparison operators
# t12: test r operator, prints two "stack empty" warnings
+# t13: test #, n and a
all: clean ${REGRESS_TARGET}
diff --git a/regress/usr.bin/dc/t13.in b/regress/usr.bin/dc/t13.in
new file mode 100644
index 00000000000..efd58282ed4
--- /dev/null
+++ b/regress/usr.bin/dc/t13.in
@@ -0,0 +1,15 @@
+# Comment
+#
+
+1n
+[foo]n
+[]an
+[a]an
+[bc]an
+0an
+32an
+100an
+100000100an
+[lidan1+dsi127>a]sa
+32silax
+10an
diff --git a/regress/usr.bin/dc/t13.out b/regress/usr.bin/dc/t13.out
new file mode 100644
index 00000000000..3ab7c2d7708
--- /dev/null
+++ b/regress/usr.bin/dc/t13.out
@@ -0,0 +1 @@
+1fooab dd !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~