Skip to content

Commit

Permalink
test(dmn/feel-scala): add failing test case max double as output expr
Browse files Browse the repository at this point in the history
related to CAM-11382
  • Loading branch information
tasso94 committed Feb 7, 2020
1 parent 77d5765 commit 8431c30
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,18 @@ public void shouldEvaluateToUtilDateForTypedOutputClause() {
assertThat(result).isEqualTo("2019-08-08T22:22:22");
}

@Ignore("CAM-11382")
@Test
@DecisionResource(resource = "scala_output_expression_double.dmn")
public void shouldReturnMaxDouble() {
// given
getVariables().putValue("myVariable", Double.MAX_VALUE);

// when
double result = evaluateDecision().getSingleEntry();

// then
assertThat(result).isEqualTo(Double.MAX_VALUE);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/1.0" id="Definitions_0ymj5db" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="3.1.0">
<decision id="Decision_1b17tzp" name="Decision 1">
<extensionElements>
<biodi:bounds x="157" y="81" width="180" height="80" />
</extensionElements>
<decisionTable id="decisionTable_1">
<input id="input_1">
<inputExpression id="inputExpression_1" typeRef="boolean" expressionLanguage="feel">
<text>true</text>
</inputExpression>
</input>
<output id="output_1" />
<rule id="DecisionRule_1fhucab">
<inputEntry id="UnaryTests_0kpj628" expressionLanguage="feel">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_1ymvc87" expressionLanguage="feel">
<text>myVariable</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>

0 comments on commit 8431c30

Please sign in to comment.