[gnumeric] Tests: add tests for number theory functions.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Tests: add tests for number theory functions.
- Date: Sun, 19 Nov 2017 02:05:26 +0000 (UTC)
commit c37b72a1c12eb60936dbf0a4bd2b19ae56e46422
Author: Morten Welinder <terra gnome org>
Date: Sat Nov 18 21:04:10 2017 -0500
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.
NEWS | 3 +++
samples/numtheory.gnumeric | Bin 0 -> 568669 bytes
test/GnumericTest.pm | 1 +
test/Makefile.am | 1 +
test/t1019-numtheory.pl | 10 ++++++++++
5 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 43d1bff..a8f14fb 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
Gnumeric 1.12.37
+Morten:
+ * Test suite improvements.
+
--------------------------------------------------------------------------
Gnumeric 1.12.36
diff --git a/samples/numtheory.gnumeric b/samples/numtheory.gnumeric
new file mode 100644
index 0000000..aaea40a
Binary files /dev/null and b/samples/numtheory.gnumeric differ
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index 4aa483b..9800bfb 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -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",
diff --git a/test/Makefile.am b/test/Makefile.am
index 7c1bf40..e5e440b 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -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 \
diff --git a/test/t1019-numtheory.pl b/test/t1019-numtheory.pl
new file mode 100755
index 0000000..81cb429
--- /dev/null
+++ b/test/t1019-numtheory.pl
@@ -0,0 +1,10 @@
+#!/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 });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]