From 2a13d998bc4a3faa40d64cff963aaf133caf795b Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sat, 18 Oct 2003 19:48:11 +0000 Subject: Regression test for J and M. --- regress/usr.bin/dc/Makefile | 5 +++-- regress/usr.bin/dc/t10.in | 7 +++++++ regress/usr.bin/dc/t10.out | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/dc/t10.in create mode 100644 regress/usr.bin/dc/t10.out diff --git a/regress/usr.bin/dc/Makefile b/regress/usr.bin/dc/Makefile index 4d03747ed4b..0792ac952ee 100644 --- a/regress/usr.bin/dc/Makefile +++ b/regress/usr.bin/dc/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.1 2003/09/21 19:30:07 otto Exp $ +# $OpenBSD: Makefile,v 1.2 2003/10/18 19:48:10 otto Exp $ DC=dc -REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 +REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 # .in: input file # .out: desired result @@ -15,6 +15,7 @@ REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 # t7: number input and string handling # t8: bc output, array operations # t9: output for different bases and wrapping of long lines +# t10: test J and M operators all: clean ${REGRESS_TARGET} diff --git a/regress/usr.bin/dc/t10.in b/regress/usr.bin/dc/t10.in new file mode 100644 index 00000000000..631d4ca580e --- /dev/null +++ b/regress/usr.bin/dc/t10.in @@ -0,0 +1,7 @@ +[1J]sM +1plMx +!echo M aap +lMp +[aMa] +M +2p diff --git a/regress/usr.bin/dc/t10.out b/regress/usr.bin/dc/t10.out new file mode 100644 index 00000000000..1191247b6d9 --- /dev/null +++ b/regress/usr.bin/dc/t10.out @@ -0,0 +1,2 @@ +1 +2 -- cgit v1.2.3