[gnumeric] Tests: new test for sheet names.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Tests: new test for sheet names.
- Date: Wed, 30 Dec 2015 15:26:59 +0000 (UTC)
commit 7620d1545e12339277cb40a7351f94ac32812b69
Author: Morten Welinder <terra gnome org>
Date: Tue Dec 29 20:57:22 2015 -0500
Tests: new test for sheet names.
samples/sheet-names-tests.gnumeric | Bin 0 -> 2025 bytes
test/Makefile.am | 1 +
test/t6521-sheet-names.pl | 50 ++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/samples/sheet-names-tests.gnumeric b/samples/sheet-names-tests.gnumeric
new file mode 100644
index 0000000..a1acc6c
Binary files /dev/null and b/samples/sheet-names-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index e50244f..9efafd1 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -99,6 +99,7 @@ TESTS = t1000-statfuns.pl \
t6518-objects.pl \
t6519-selection.pl \
t6520-sheet-tab.pl \
+ t6521-sheet-names.pl \
t7000-goal-seek.pl \
t7100-solver-blend.pl \
t7101-solver-afiro.pl \
diff --git a/test/t6521-sheet-names.pl b/test/t6521-sheet-names.pl
new file mode 100755
index 0000000..4c88e69
--- /dev/null
+++ b/test/t6521-sheet-names.pl
@@ -0,0 +1,50 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/sheet-names-tests.gnumeric";
+
+if (&subtest ("gnumeric")) {
+ &message ("Check sheet names gnumeric roundtrip.");
+ &test_roundtrip ($file,
+ 'format' => 'Gnumeric_XmlIO:sax',
+ 'ext' => "gnm");
+}
+
+if (&subtest ("ods")) {
+ &message ("Check sheet names ods roundtrip.");
+ &test_roundtrip ($file,
+ 'format' => 'Gnumeric_OpenCalc:odf',
+ 'ext' => "ods",
+ 'filter2' => 'std:drop_generator');
+}
+
+if (&subtest ("biff7")) {
+ &message ("Check sheet names xls/BIFF7 roundtrip.");
+ &test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff7',
+ 'ext' => "xls",
+ 'resize' => '16384x256',
+ 'filter2' => 'std:drop_codepage',
+ 'ignore_failure' => 1);
+}
+
+if (&subtest ("biff8")) {
+ &message ("Check sheet names xls/BIFF8 roundtrip.");
+ &test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff8',
+ 'ext' => "xls",
+ 'filter2' => 'std:drop_codepage',
+ 'ignore_failure' => 1);
+}
+
+if (&subtest ("xlsx")) {
+ &message ("Check sheet names 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]