[gnumeric] Tests: add tests for merged ranges.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Tests: add tests for merged ranges.
- Date: Mon, 10 Mar 2014 01:02:21 +0000 (UTC)
commit cbd369930fce8f04b055917f8e1b164baebf3659
Author: Morten Welinder <terra gnome org>
Date: Sun Mar 9 21:01:46 2014 -0400
Tests: add tests for merged ranges.
samples/merge-tests.gnumeric | Bin 0 -> 2000 bytes
test/Makefile.am | 1 +
test/t6513-merges.pl | 44 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/samples/merge-tests.gnumeric b/samples/merge-tests.gnumeric
new file mode 100644
index 0000000..445d195
Binary files /dev/null and b/samples/merge-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index e7308bc..e2b4e5d 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -85,6 +85,7 @@ TESTS = t1000-statfuns.pl \
t6510-auto-filter.pl \
t6511-solver.pl \
t6512-format.pl \
+ t6513-merges.pl \
t7000-goal-seek.pl \
t7100-solver-blend.pl \
t7101-solver-afiro.pl \
diff --git a/test/t6513-merges.pl b/test/t6513-merges.pl
new file mode 100755
index 0000000..18c6515
--- /dev/null
+++ b/test/t6513-merges.pl
@@ -0,0 +1,44 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+# NOTE: this is an import/export tests. We do not look at what is done
+# with the formats in the test files.
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/merge-tests.gnumeric";
+
+&message ("Check merges gnumeric roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_XmlIO:sax',
+ 'ext' => "gnm");
+
+&message ("Check merges ods roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_OpenCalc:odf',
+ 'ext' => "ods",
+ 'filter2' => "$PERL -p -e '\$_ = \"\" if m{<meta:generator>}'",
+ 'ignore_failure' => 1);
+
+my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
+
+&message ("Check merges xls/BIFF7 roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff7',
+ 'ext' => "xls",
+ 'resize' => '16384x256',
+ 'filter2' => $xls_codepage_filter);
+
+&message ("Check merges xls/BIFF8 roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff8',
+ 'ext' => "xls",
+ 'filter2' => $xls_codepage_filter);
+
+&message ("Check merges xlsx roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:xlsx',
+ 'ext' => "xlsx",
+ 'resize' => '1048576x16384');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]