From d1986f81d0a82b9f5a73a89699ff94559bb7ca16 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 1 Nov 2007 12:10:06 +0100 Subject: Adjust a seq subtest not to depend on the vagaries of floating point. * tests/misc/seq (float-3): Use 10.94 as the endpoint, not 10.95, since 10.95 was precisely in the middle of the interval, and with a %.1f format could map to either 10.9 or 11.0. Reported by Mike Frysinger --- tests/misc/seq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/misc/seq b/tests/misc/seq index 8da4335dd..1f3ec06c1 100755 --- a/tests/misc/seq +++ b/tests/misc/seq @@ -47,7 +47,7 @@ my @Tests = ['float-1', qw(0.8 0.1 0.9), {OUT => [qw(0.8 0.9)]}], ['float-2', qw(0.1 0.99 1.99), {OUT => [qw(0.10 1.09)]}], - ['float-3', qw(10.8 0.1 10.95), {OUT => [qw(10.8 10.9)]}], + ['float-3', qw(10.8 0.1 10.94), {OUT => [qw(10.8 10.9)]}], ['float-4', qw(0.1 -0.1 -0.2), {OUT => [qw(0.1 0.0 -0.1 -0.2)]}, {OUT_SUBST => 's,^-0\.0$,0.0,'}, ], -- cgit v1.2.3-54-g00ecf