diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-11-04 08:11:42 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-11-04 08:11:42 +0000 |
commit | 066472cf2c608f2134ccab0b677adb9af872c521 (patch) | |
tree | 2db69e60c5791651ba28550cd16c24f7807ada64 /regress | |
parent | b8d0aaee5832dbe3573e099413c8d983768cbbc5 (diff) |
Test r operator.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/dc/Makefile | 6 | ||||
-rw-r--r-- | regress/usr.bin/dc/t12.in | 9 | ||||
-rw-r--r-- | regress/usr.bin/dc/t12.out | 14 |
3 files changed, 27 insertions, 2 deletions
diff --git a/regress/usr.bin/dc/Makefile b/regress/usr.bin/dc/Makefile index c9ab693696f..2ba690412cb 100644 --- a/regress/usr.bin/dc/Makefile +++ b/regress/usr.bin/dc/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.3 2003/10/22 12:17:56 otto Exp $ +# $OpenBSD: Makefile,v 1.4 2003/11/04 08:11:41 otto Exp $ DC=dc -REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 t11 +REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 t11 t12 # .in: input file # .out: desired result @@ -16,6 +16,8 @@ REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 t11 # t8: bc output, array operations # t9: output for different bases and wrapping of long lines # t10: test J and M operators +# t11: test extended comparison operators +# t12: test r operator, prints two "stack empty" warnings all: clean ${REGRESS_TARGET} diff --git a/regress/usr.bin/dc/t12.in b/regress/usr.bin/dc/t12.in new file mode 100644 index 00000000000..b3a0faabaac --- /dev/null +++ b/regress/usr.bin/dc/t12.in @@ -0,0 +1,9 @@ +1 2 rf +[a] [b] rf +[c] 3 rf +c +r +1 +r +2 +rf diff --git a/regress/usr.bin/dc/t12.out b/regress/usr.bin/dc/t12.out new file mode 100644 index 00000000000..8ad2c975c3c --- /dev/null +++ b/regress/usr.bin/dc/t12.out @@ -0,0 +1,14 @@ +1 +2 +a +b +1 +2 +c +3 +a +b +1 +2 +1 +2 |