Skip to content

Commit

Permalink
amend incorrect stddev test description and add addition test for sin…
Browse files Browse the repository at this point in the history
…gleton list as per spec example (#655)
  • Loading branch information
StrayAlien authored Apr 18, 2024
1 parent 39af3b6 commit adc6351
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@
</resultNode>
</testCase>

<testCase id="008_a">
<description>will error when a list with a single item.</description>
<resultNode errorResult="true" name="decision008_a" type="decision">
<expected>
<value xsi:nil="true"/>
</expected>
</resultNode>
</testCase>

<testCase id="009">
<description>will return stddev for varargs list</description>
<resultNode name="decision009" type="decision">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,22 @@
</decision>

<decision name="decision008" id="_decision008">
<description>Tests FEEL expression: 'stddev(4)' and expects result: '4 (number)'</description>
<question>Result of FEEL expression 'stddev(4)'?</question>
<allowedAnswers>4 (number)</allowedAnswers>
<description>Tests FEEL expression: 'stddev(47)' and expects result: 'null (number)'</description>
<question>Result of FEEL expression 'stddev(47)'?</question>
<allowedAnswers>null (number)</allowedAnswers>
<variable typeRef="number" name="decision008"/>
<literalExpression>
<text>stddev(4)</text>
<text>stddev(47)</text>
</literalExpression>
</decision>

<decision name="decision008_a" id="_decision008_a">
<description>Tests FEEL expression: 'stddev([47])' and expects result: 'null (number)'</description>
<question>Result of FEEL expression 'stddev([47])'?</question>
<allowedAnswers>null (number)</allowedAnswers>
<variable typeRef="number" name="decision008_a"/>
<literalExpression>
<text>stddev([47])</text>
</literalExpression>
</decision>

Expand Down

0 comments on commit adc6351

Please sign in to comment.