Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-01-04 10:44:19 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-11 09:30:51 -0400
commit2e453ee703fbfb91a037c4690a56738517215987 (patch)
tree0ae3215d0aa2a6d0d19f6f85ab1ec5d69cd361c6
parent8d46b38f252cd6c28764996e2b908116e35c508b (diff)
downloadtame-2e453ee703fbfb91a037c4690a56738517215987.tar.gz
tame-2e453ee703fbfb91a037c4690a56738517215987.tar.bz2
tame-2e453ee703fbfb91a037c4690a56738517215987.zip
test/core/round: Fix _let-round_ expectations
This technically worked because the compiler produced correct JS code, but it shouldn't have (there's just no validation here). Recent changes to the summary page caused this to blow up when building the suite.
-rw-r--r--core/test/core/numeric/round.xml64
1 files changed, 11 insertions, 53 deletions
diff --git a/core/test/core/numeric/round.xml b/core/test/core/numeric/round.xml
index 0198d5b..7ac3736 100644
--- a/core/test/core/numeric/round.xml
+++ b/core/test/core/numeric/round.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
- Copyright (C) 2015 R-T Specialty, LLC.
+ Copyright (C) 2015, 2018 R-T Specialty, LLC.
This file is part of tame-core.
@@ -201,15 +201,8 @@
</t:given>
<t:expect>
- <t:match-result>
- <c:eq>
- <c:sum>
- <c:value-of name="VALUE_FLOOR" />
- <c:value-of name="VALUE_CEIL" />
- <c:value-of name="VALUE_CEIL" />
- </c:sum>
- </c:eq>
- </t:match-result>
+ <!-- VALUE_FLOOR + VALUE_CEIL + VALUE_CEIL -->
+ <t:match-result eq="17" />
</t:expect>
</t:it>
</t:describe>
@@ -232,15 +225,8 @@
</t:given>
<t:expect>
- <t:match-result>
- <c:eq>
- <c:sum>
- <c:value-of name="VALUE_FLOOR" />
- <c:value-of name="VALUE_CEIL" />
- <c:value-of name="VALUE_CEIL" />
- </c:sum>
- </c:eq>
- </t:match-result>
+ <!-- VALUE_FLOOR + VALUE_CEIL + VALUE_CEIL -->
+ <t:match-result eq="17" />
</t:expect>
</t:it>
</t:describe>
@@ -259,12 +245,7 @@
<!-- 1234.56 moved over two dec places = 12.3456; round that -->
<t:expect>
- <t:match-result>
- <c:eq>
- <c:const value="1200" type="integer"
- desc="Positive offset floor result" />
- </c:eq>
- </t:match-result>
+ <t:match-result eq="1200" />
</t:expect>
</t:it>
@@ -280,12 +261,7 @@
<!-- 1234.56 moved over one dec place = 12345.6; round that -->
<t:expect>
- <t:match-result>
- <c:eq>
- <c:const value="1234.50" type="float"
- desc="Negative offset floor result" />
- </c:eq>
- </t:match-result>
+ <t:match-result eq="1234.50" />
</t:expect>
</t:it>
</t:describe>
@@ -306,17 +282,8 @@
</t:given>
<t:expect>
- <t:match-result>
- <c:eq>
- <!-- summed constants purely for clarity -->
- <c:sum>
- <c:const value="30" type="integer"
- desc="Floor of step 15" />
- <c:const value="45" type="integer"
- desc="Ceiling of step 15" />
- </c:sum>
- </c:eq>
- </t:match-result>
+ <!-- 30 + 45 -->
+ <t:match-result eq="75" />
</t:expect>
</t:it>
</t:describe>
@@ -340,17 +307,8 @@
<!-- 43.46 * 10^-1 = 434.6 / 15 = 28.973; ceil/floor that, then undo
step/exp to yield final result -->
<t:expect>
- <t:match-result>
- <c:eq>
- <!-- summed constants purely for clarity -->
- <c:sum>
- <c:const value="42" type="integer"
- desc="Floor of step 15 exp 1" />
- <c:const value="43.5" type="integer"
- desc="Ceiling of step 15 exp 1" />
- </c:sum>
- </c:eq>
- </t:match-result>
+ <!-- 42 + 43.5 -->
+ <t:match-result eq="85.5" />
</t:expect>
</t:it>
</t:describe>