From b4d172a8eeddb990be039a7ab2a85fb6dbe21e4b Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 13 Dec 2005 19:29:44 +0000 Subject: Test non-decimal fraction input, which is currently broken, but will be fixed soon. --- regress/usr.bin/dc/Makefile | 5 +++-- regress/usr.bin/dc/t26.in | 26 ++++++++++++++++++++++++++ regress/usr.bin/dc/t26.out | 22 ++++++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/dc/t26.in create mode 100644 regress/usr.bin/dc/t26.out (limited to 'regress/usr.bin/dc') diff --git a/regress/usr.bin/dc/Makefile b/regress/usr.bin/dc/Makefile index 62108c5077f..55bbe888d2f 100644 --- a/regress/usr.bin/dc/Makefile +++ b/regress/usr.bin/dc/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.16 2005/04/02 18:06:10 otto Exp $ +# $OpenBSD: Makefile,v 1.17 2005/12/13 19:29:43 otto Exp $ DC=dc -x REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 \ - t18 t19 t20 t21 t22 t23 t24 t25 + t18 t19 t20 t21 t22 t23 t24 t25 t26 # .in: input file # .out: desired result @@ -33,6 +33,7 @@ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 \ # t23: factorial 1000 # t24: line continuations # t25: exp +# t26: non-decimal fractions all: clean ${REGRESS_TARGET} diff --git a/regress/usr.bin/dc/t26.in b/regress/usr.bin/dc/t26.in new file mode 100644 index 00000000000..2287e768fe3 --- /dev/null +++ b/regress/usr.bin/dc/t26.in @@ -0,0 +1,26 @@ +16i +FF.F +FF.F0 +FF.F00 +FF.F000 +FF.F0000 +F.100 +_F.1 +8i +0.1 +0.10 +0.100 +0.1000 +0.7 +0.70 +0.7000 +2i +1 +1.1 +_1.1 +1.01 +1.11 +.001 +0.0001 +_0.0011 +f diff --git a/regress/usr.bin/dc/t26.out b/regress/usr.bin/dc/t26.out new file mode 100644 index 00000000000..85c8dc1edec --- /dev/null +++ b/regress/usr.bin/dc/t26.out @@ -0,0 +1,22 @@ +-.1875 +.0625 +.125 +1.75 +1.25 +-1.5 +1.5 +1 +.8750 +.87 +.8 +.1250 +.125 +.12 +.1 +-15.0 +15.062 +255.93750 +255.9375 +255.937 +255.93 +255.9 -- cgit v1.2.3