t7122-solver-Nelson.pl 470 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/usr/bin/perl -w
# -----------------------------------------------------------------------------

use strict;
use lib ($0 =~ m|^(.*/)| ? $1 : ".");
use GnumericTest;

my $file = "Nelson.gnumeric";
9
my $rle = 4.7;
10 11 12 13 14
&message ("Check non-linear solver on $file problem.");
&test_sheet_calc ("$samples/solver/$file", ['--solve'], "K39",
		  sub {
		      chomp;
		      print STDERR "--> $_\n";
15
		      my $ok = (/^[-+]?(\d|\.\d)/ && $_ > $rle);
16
		      return $ok;
17
		  });