Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-10-30 11:10:39 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-02-01 16:01:56 -0500
commite4ccf3e90aa47e03cbce29958d0a903ef474e6da (patch)
tree43cddb07f36fd1b60a01291606647bb751e3a110 /core
parent304faa1f07198959bb29985de8844432459a06f9 (diff)
downloadtame-e4ccf3e90aa47e03cbce29958d0a903ef474e6da.tar.gz
tame-e4ccf3e90aa47e03cbce29958d0a903ef474e6da.tar.bz2
tame-e4ccf3e90aa47e03cbce29958d0a903ef474e6da.zip
test/spec: Work around expand-sequence bug
* core/test/spec.xml (_describe_): Enclose aggregate classification in a series of nested expand-sequence to work around bug (described in comment), which was causing test cases to not be compiled.
Diffstat (limited to 'core')
-rw-r--r--core/test/spec.xml51
1 files changed, 31 insertions, 20 deletions
diff --git a/core/test/spec.xml b/core/test/spec.xml
index abb029d..6e5e9a8 100644
--- a/core/test/spec.xml
+++ b/core/test/spec.xml
@@ -136,29 +136,40 @@
<expand-sequence>
- <expand-group>
- <param-copy name="@values@">
- <param-meta name="spec-name"
- value="@__full_name@" />
- <param-meta name="spec-prefix"
- value="@__prefix@" />
- </param-copy>
- </expand-group>
+ <param-copy name="@values@">
+ <param-meta name="spec-name"
+ value="@__full_name@" />
+ <param-meta name="spec-prefix"
+ value="@__prefix@" />
+ </param-copy>
<!-- joins all generated classifications to provide a higher-level
failure if any expectations fail -->
- <classify as="expect-conform-{@__prefix@}{@__uniq@}"
- desc="{@__full_name@} meets expectations"
- keep="true">
- <inline-template>
- <for-each>
- <sym-set name-prefix="expect-that-{@__prefix@}"
- type="class" />
- </for-each>
-
- <t:match-class name="{@sym_name@}" />
- </inline-template>
- </classify>
+ <!-- XXX: there is a bug in expand-sequence where it does not wait for
+ all template expansions before continuing to expand the next item
+ in the sequence -->
+ <expand-sequence>
+ <expand-sequence>
+ <expand-sequence>
+ <expand-sequence>
+ <expand-sequence>
+ <classify as="expect-conform-{@__prefix@}{@__uniq@}"
+ desc="{@__full_name@} meets expectations"
+ keep="true">
+ <inline-template>
+ <for-each>
+ <sym-set name-prefix="expect-that-{@__prefix@}"
+ type="class" />
+ </for-each>
+
+ <t:match-class name="{@sym_name@}" />
+ </inline-template>
+ </classify>
+ </expand-sequence>
+ </expand-sequence>
+ </expand-sequence>
+ </expand-sequence>
+ </expand-sequence>
</expand-sequence>
</template>