[gnumeric] Tests: the solver tests now succeed.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Tests: the solver tests now succeed.
- Date: Sun, 11 Sep 2016 22:44:56 +0000 (UTC)
commit 95d0684a55d995a1b09b37feeb8209236c8bd636
Author: Morten Welinder <terra gnome org>
Date: Sun Sep 11 18:43:45 2016 -0400
Tests: the solver tests now succeed.
test/t7121-solver-Hahn1.pl | 9 ++-------
test/t7141-solver-Thurber.pl | 8 +-------
2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/test/t7121-solver-Hahn1.pl b/test/t7121-solver-Hahn1.pl
index a0659cb..f114532 100755
--- a/test/t7121-solver-Hahn1.pl
+++ b/test/t7121-solver-Hahn1.pl
@@ -6,17 +6,12 @@ use lib ($0 =~ m|^(.*/)| ? $1 : ".");
use GnumericTest;
my $file = "Hahn1.gnumeric";
-my $rle = 2.5;
+my $rle = 6;
&message ("Check non-linear solver on $file problem.");
&test_sheet_calc ("$samples/solver/$file", ['--solve'], "K39",
sub {
chomp;
print STDERR "--> $_\n";
my $ok = (/^[-+]?(\d|\.\d)/ && $_ > $rle);
- if ($ok) {
- print STDERR "Unexpected success.\n";
- } else {
- print STDERR "Known failure.\n" ;
- $ok = 1;
- }
+ return $ok;
});
diff --git a/test/t7141-solver-Thurber.pl b/test/t7141-solver-Thurber.pl
index 5de9615..cce96bb 100755
--- a/test/t7141-solver-Thurber.pl
+++ b/test/t7141-solver-Thurber.pl
@@ -6,18 +6,12 @@ use lib ($0 =~ m|^(.*/)| ? $1 : ".");
use GnumericTest;
my $file = "Thurber.gnumeric";
-my $rle = 3.8;
+my $rle = 5;
&message ("Check non-linear solver on $file problem.");
&test_sheet_calc ("$samples/solver/$file", ['--solve'], "K39",
sub {
chomp;
print STDERR "--> $_\n";
my $ok = (/^[-+]?(\d|\.\d)/ && $_ > $rle);
- if ($ok) {
- print STDERR "Unexpected success.\n";
- } else {
- print STDERR "Known failure.\n" ;
- $ok = 1;
- }
return $ok;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]