Commit 69d2b432 authored by Morten Welinder's avatar Morten Welinder

tests: be less strict about the result.

parent 5c405112
......@@ -6,11 +6,13 @@ use lib ($0 =~ m|^(.*/)| ? $1 : ".");
use GnumericTest;
my $file = "blend.mps";
my $answer = -30.81221619004;
my $answer = -30.8121498458281;
# lp_solve: -30.81221619004;
my $tol = 1e-4;
&message ("Check solver on $file problem.");
&test_sheet_calc ("$samples/solver/$file", ['--solve'], "B5",
sub {
chomp;
return (/^[-+]?(\d|\.\d)/ &&
abs ($answer - $_) < 1e-6);
abs ($answer - $_) < $tol);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment