[gnumeric] Tests: sanity check the numbers test before running roundtrip tests on it.



commit 5f11191fabd1fb982d1b73ad01872a9a737574ab
Author: Morten Welinder <terra gnome org>
Date:   Wed Feb 19 18:33:47 2014 -0500

    Tests: sanity check the numbers test before running roundtrip tests on it.

 test/GnumericTest.pm  |    2 +-
 test/t6501-numbers.pl |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index 8ae54f7..e540ccb 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -21,7 +21,7 @@ $topsrc =~ s|/[^/]+$|/..|;
 $topsrc =~ s|/test/\.\.$||;
 
 $top_builddir = "..";
-$samples = "$topsrc/samples";
+$samples = "$topsrc/samples"; $samples =~ s{^\./}{};
 $ssconvert = "$top_builddir/src/ssconvert";
 $ssindex = "$top_builddir/src/ssindex";
 $sstest = "$top_builddir/src/sstest";
diff --git a/test/t6501-numbers.pl b/test/t6501-numbers.pl
index a3085e6..44e303f 100755
--- a/test/t6501-numbers.pl
+++ b/test/t6501-numbers.pl
@@ -7,6 +7,9 @@ use GnumericTest;
 
 my $file = "$samples/number-tests.gnumeric";
 
+&message ("Check that $file evaluates correctly.");
+&test_sheet_calc ($file, "F1", sub { /TRUE/ });
+
 &message ("Check number gnumeric roundtrip.");
 &test_roundtrip ($file,
                 'format' => 'Gnumeric_XmlIO:sax',


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