From 98fd84149f579f54527a8d3cab80987ba2a03c52 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 6 Nov 2003 19:50:05 +0000 Subject: Test #, n, and a. --- regress/usr.bin/dc/Makefile | 5 +++-- regress/usr.bin/dc/t13.in | 15 +++++++++++++++ regress/usr.bin/dc/t13.out | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/dc/t13.in create mode 100644 regress/usr.bin/dc/t13.out (limited to 'regress/usr.bin') 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{|}~ -- cgit v1.2.3