[gnumeric] Tests: automate testing of database functions.



commit cde26193646aa58807e4ab0fd69a327f82307da1
Author: Morten Welinder <terra gnome org>
Date:   Sat Jun 11 11:28:58 2016 -0400

    Tests: automate testing of database functions.

 NEWS                          |    2 ++
 samples/excel12/database.xlsx |  Bin 6501 -> 7481 bytes
 test/Makefile.am              |    1 +
 test/t1016-database.pl        |   10 ++++++++++
 4 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 4de3fc1..7633477 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ Gnumeric 1.12.30
 Morten:
        * Improve format guessing for csv and txt files.
        * Fix DCOUNT and DCOUNTA with missing field.  [#767290]
+       * Fix strictness in database functions.
+       * Improve test suite.
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.29
diff --git a/samples/excel12/database.xlsx b/samples/excel12/database.xlsx
index 6038cd3..2cad4f4 100644
Binary files a/samples/excel12/database.xlsx and b/samples/excel12/database.xlsx differ
diff --git a/test/Makefile.am b/test/Makefile.am
index e391fb0..590a9f1 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -43,6 +43,7 @@ TESTS =       t1000-statfuns.pl                       \
        t1013-crlibm.pl                         \
        t1014-gsl.pl                            \
        t1015-complex.pl                        \
+       t1016-database.pl                       \
        t1100-chitest.pl                        \
        t1101-ftest.pl                          \
        t1102-ttest.pl                          \
diff --git a/test/t1016-database.pl b/test/t1016-database.pl
new file mode 100755
index 0000000..1f132ec
--- /dev/null
+++ b/test/t1016-database.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "excel12/database.xlsx";
+&message ("Check that $file evaluates correctly.");
+&test_sheet_calc ("$samples/$file", "Overview!C2:C99", sub { /(\s*0)+\s*/i });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]