[gnumeric] Tests: add new ifs-funcs to tests



commit 5e8ea469d71882dc09ba71c041f27da2eeb84195
Author: Morten Welinder <terra gnome org>
Date:   Mon Aug 8 14:18:33 2016 -0400

    Tests: add new ifs-funcs to tests

 test/GnumericTest.pm    |    3 +++
 test/Makefile.am        |    1 +
 test/t1018-ifs-funcs.pl |   10 ++++++++++
 3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index ff927ea..fbe7f78 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -189,6 +189,9 @@ my @full_corpus =
      "$samples/excel/textfuns.xls",
      "$samples/excel/yalta2008.xls",
      "$samples/excel12/cellstyle.xlsx",
+     "$samples/excel12/database.xlsx",
+     "$samples/excel12/ifs-funcs.xlsx",
+     "$samples/excel12/countif.xlsx",
      "$samples/crlibm.gnumeric",
      "$samples/amath.gnumeric",
      "$samples/gamma.gnumeric",
diff --git a/test/Makefile.am b/test/Makefile.am
index 64b24e3..69e3a6d 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -45,6 +45,7 @@ TESTS =       t1000-statfuns.pl                       \
        t1015-complex.pl                        \
        t1016-database.pl                       \
        t1017-countif.pl                        \
+       t1018-ifs-funcs.pl                      \
        t1100-chitest.pl                        \
        t1101-ftest.pl                          \
        t1102-ttest.pl                          \
diff --git a/test/t1018-ifs-funcs.pl b/test/t1018-ifs-funcs.pl
new file mode 100755
index 0000000..b10e792
--- /dev/null
+++ b/test/t1018-ifs-funcs.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "excel12/ifs-funcs.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]