[gnumeric] ssgrep: more testing.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ssgrep: more testing.
- Date: Tue, 5 Dec 2017 22:17:55 +0000 (UTC)
commit 0bea14aa6334ad1e05b52faa283796ea06e59f0c
Author: Morten Welinder <terra gnome org>
Date: Tue Dec 5 17:17:15 2017 -0500
ssgrep: more testing.
Strangely enough, ssgrep actually passes the tests I throw at it.
test/t9010-ssgrep.pl | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/test/t9010-ssgrep.pl b/test/t9010-ssgrep.pl
index 73c6e9f..6432ecb 100755
--- a/test/t9010-ssgrep.pl
+++ b/test/t9010-ssgrep.pl
@@ -8,9 +8,10 @@ use GnumericTest;
my $src1 = "$samples/excel/statfuns.xls";
my $src2 = "$samples/excel/mathfuns.xls";
my $src3 = "$samples/excel/engfuns.xls";
+my $src4 = "$samples/auto-filter-tests.gnumeric";
&GnumericTest::report_skip ("Missing source files")
- unless -r $src1 && -r $src2 && -r $src3;
+ unless -r $src1 && -r $src2 && -r $src3 && -r $src4;
my %expected;
@@ -44,6 +45,15 @@ my $nbad = 0;
&message ("Checking ssgrep with proper regexp.");
&check ("$ssgrep 'SUM[IS]' $src2", 'TEST6A', 0);
+&message ("Checking ssgrep with hits on multiple sheets.");
+&check ("$ssgrep -T -H -n wbc-gtk-actions $src4", 'TEST7A', 0);
+
+&message ("Checking ssgrep -i.");
+&check ("$ssgrep -h -i SUMIF $src1 $src2 $src3", 'TEST8A', 0);
+
+&message ("Checking ssgrep -w.");
+&check ("$ssgrep -h -i -w COUNT $src1 $src2 $src3", 'TEST9A', 0);
+
# -----------------------------------------------------------------------------
if ($nbad > 0) {
@@ -157,4 +167,18 @@ IMSUM
*** TEST6A ***
SUMIF
SUMSQ
+*** TEST7A ***
+$samples/auto-filter-tests.gnumeric:cell:Sheet1!G4:wbc-gtk-actions.c
+$samples/auto-filter-tests.gnumeric:cell:Sheet2!G4:wbc-gtk-actions.c
+$samples/auto-filter-tests.gnumeric:cell:Sheet3!G4:wbc-gtk-actions.c
+*** TEST8A ***
+SUMIF
+=sumif(A14:A17,H14)
+=sumif(B14:B17,H15)
+=sumif(A14:A17,H15,C14:C17)
+*** TEST9A ***
+COUNT
+=count(A14:A17)
+=count(G14:G17)
+=count(B14:B18)
*** END ***
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]