Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-02-13 16:10:26 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-02-13 16:10:26 -0500
commit279245d16837df60cba9539f09e0d9240c514f0b (patch)
treeb51554d9baff593bcd68a65997cdd09972b9012d /core
parent46b7c234dda2d87802337d1337bc3b87da966303 (diff)
downloadtame-279245d16837df60cba9539f09e0d9240c514f0b.tar.gz
tame-279245d16837df60cba9539f09e0d9240c514f0b.tar.bz2
tame-279245d16837df60cba9539f09e0d9240c514f0b.zip
core: Add missing _minreduce_ @isvector@ test
core/test/core/vector/minmax.xml: Add missing @isvector@ test.
Diffstat (limited to 'core')
-rw-r--r--core/test/core/vector/minmax.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/test/core/vector/minmax.xml b/core/test/core/vector/minmax.xml
index eadcec7..52fd37d 100644
--- a/core/test/core/vector/minmax.xml
+++ b/core/test/core/vector/minmax.xml
@@ -68,5 +68,32 @@
<t:match-result eq="1" />
</t:expect>
</t:it>
+
+
+ <t:it desc="reduces existing vectors when @isvector@">
+ <t:given>
+ <c:let>
+ <c:values>
+ <c:value name="vector" type="integer" set="vector"
+ desc="Test vector">
+ <c:vector>
+ <c:value-of name="#9" />
+ <c:value-of name="#3" />
+ <c:value-of name="#2" />
+ <c:value-of name="#5" />
+ </c:vector>
+ </c:value>
+ </c:values>
+
+ <t:minreduce isvector="true">
+ <c:value-of name="vector" />
+ </t:minreduce>
+ </c:let>
+ </t:given>
+
+ <t:expect>
+ <t:match-result eq="2" />
+ </t:expect>
+ </t:it>
</t:describe>
</package>