[gnumeric] Tests: add new test for complex number math



commit 247975648a33a293e2bae4aae92e8d9bbf5f4b81
Author: Morten Welinder <terra gnome org>
Date:   Thu Mar 24 18:03:17 2016 -0400

    Tests: add new test for complex number math

 NEWS                           |    1 +
 samples/complex-tests.gnumeric |  Bin 3004 -> 3123 bytes
 test/Makefile.am               |    1 +
 test/t1015-complex.pl          |   10 ++++++++++
 4 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 3d905cb..8ced0fe 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Gnumeric 1.12.29
 Morten:
        * Documentation fixes for complex numbers.
        * Fix rare RANDBETWEEN problem.
+       * Test suite improvements.
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.28
diff --git a/samples/complex-tests.gnumeric b/samples/complex-tests.gnumeric
index 4edcd00..e03c956 100644
Binary files a/samples/complex-tests.gnumeric and b/samples/complex-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index d96e8f9..889eff7 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -41,6 +41,7 @@ TESTS =       t1000-statfuns.pl                       \
        t1012-burkardt.pl                       \
        t1013-crlibm.pl                         \
        t1014-gsl.pl                            \
+       t1015-complex.pl                        \
        t1100-chitest.pl                        \
        t1101-ftest.pl                          \
        t1102-ttest.pl                          \
diff --git a/test/t1015-complex.pl b/test/t1015-complex.pl
new file mode 100755
index 0000000..c1b86ec
--- /dev/null
+++ b/test/t1015-complex.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "complex-tests.gnumeric";
+&message ("Check that $file evaluates correctly.");
+&test_sheet_calc ("$samples/$file", "A3", sub { $_ > 15 });


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