[gnumeric] Tests: don't worry about boolean constant functions roundtripping as constants.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Tests: don't worry about boolean constant functions roundtripping as constants.
- Date: Tue, 21 Nov 2017 00:46:53 +0000 (UTC)
commit 10c4329f8f6796aba075ce8893220b2cb1387f65
Author: Morten Welinder <terra gnome org>
Date: Mon Nov 20 19:45:48 2017 -0500
Tests: don't worry about boolean constant functions roundtripping as constants.
ods doesn't have boolean constants, so the two collide.
test/t6590-samples.pl | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/test/t6590-samples.pl b/test/t6590-samples.pl
index e0d0436..64db963 100755
--- a/test/t6590-samples.pl
+++ b/test/t6590-samples.pl
@@ -41,9 +41,14 @@ if (&subtest ("gnumeric")) {
if (&subtest ("ods")) {
&message ("Check documentation samples ods roundtrip.");
+
+ # Replace calls to boolean functions with constants
+ my $bool_func_filter = "$PERL -p -e 's{\\b(true|false)\\(\\)}{uc(\$1)}e'";
+
&test_roundtrip ($file,
'format' => 'Gnumeric_OpenCalc:odf',
'ext' => "ods",
+ 'filter0' => "$bool_func_filter",
'filter2' => 'std:drop_generator',
'ignore_failure' => 1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]