Commit c37b72a1 authored by Morten Welinder's avatar Morten Welinder

Tests: add tests for number theory functions.

These tests aren't perfect, but check the basic relationships that
are expected for all integers up to 10000.
parent 1d897791
Gnumeric 1.12.37
Morten:
* Test suite improvements.
--------------------------------------------------------------------------
Gnumeric 1.12.36
......
......@@ -207,6 +207,7 @@ my @full_corpus =
"$samples/chitest.xls",
"$samples/vdb.gnumeric",
"$samples/numbermatch.gnumeric",
"$samples/numtheory.gnumeric",
"$samples/solver/afiro.mps",
"$samples/solver/blend.mps",
"$samples/auto-filter-tests.gnumeric",
......
......@@ -47,6 +47,7 @@ TESTS = t1000-statfuns.pl \
t1016-database.pl \
t1017-countif.pl \
t1018-ifs-funcs.pl \
t1019-numtheory.pl \
t1100-chitest.pl \
t1101-ftest.pl \
t1102-ttest.pl \
......
#!/usr/bin/perl -w
# -----------------------------------------------------------------------------
use strict;
use lib ($0 =~ m|^(.*/)| ? $1 : ".");
use GnumericTest;
my $file = "numtheory.gnumeric";
&message ("Check that $file evaluates correctly.");
&test_sheet_calc ("$samples/$file", "A1", sub { /\bOK\b/i });
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