Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DMN 1.5] Add tests for equality operators in positive unary tests to the TCK suite #545

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>1131-feel-unary.dmn</modelName>
<labels>
<label>Compliance Level 3</label>
<label>FEEL unary</label>
</labels>
<testCase id="number_not_equal">
<description>number: e1 in unary tests</description>
<resultNode name="number_not_equal" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_not_equal_a">
<description>number: e1 in unary tests</description>
<resultNode name="number_not_equal_a" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_equal">
<description>number: e1 in unary tests</description>
<resultNode name="number_equal" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_equal_a">
<description>number: e1 in unary tests</description>
<resultNode name="number_equal_a" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_greater_than_or_equal">
<description>number: e1 in unary tests</description>
<resultNode name="number_greater_than_or_equal" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_greater_than_or_equal_a">
<description>number: e1 in unary tests</description>
<resultNode name="number_greater_than_or_equal_a" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_greater_than_or_equal_b">
<description>number: e1 in unary tests</description>
<resultNode name="number_greater_than_or_equal_b" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_less_than_or_equal">
<description>number: e1 in unary tests</description>
<resultNode name="number_less_than_or_equal" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_less_than_or_equal_a">
<description>number: e1 in unary tests</description>
<resultNode name="number_less_than_or_equal_a" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_less_than_or_equal_b">
<description>number: e1 in unary tests</description>
<resultNode name="number_less_than_or_equal_b" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_greater_than">
<description>number: e1 in unary tests</description>
<resultNode name="number_greater_than" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_greater_than_a">
<description>number: e1 in unary tests</description>
<resultNode name="number_greater_than_a" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_less_than">
<description>number: e1 in unary tests</description>
<resultNode name="number_less_than" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
</testCase>
<testCase id="number_less_than_a">
<description>number: e1 in unary tests</description>
<resultNode name="number_less_than_a" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
</testCases>
89 changes: 89 additions & 0 deletions TestCases/compliance-level-3/1131-feel-unary/1131-feel-unary.dmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions namespace="http://www.montera.com.au/spec/DMN/0072-feel-in" name="1131-feel-unary" id="_i9fboPUUEeesLuP4RHs4vA" xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<description>FEEL in</description>
<decision name="number_not_equal" id="number_not_equal">
<variable name="number_not_equal"/>
<literalExpression>
<text>10 in !=9</text>
</literalExpression>
</decision>
<decision name="number_not_equal_a" id="number_not_equal_a">
<variable name="number_not_equal_a"/>
<literalExpression>
<text>10 in !=10</text>
</literalExpression>
</decision>
<decision name="number_equal" id="number_equal">
<variable name="number_equal"/>
<literalExpression>
<text>10 in =10</text>
</literalExpression>
</decision>
<decision name="number_equal_a" id="number_equal_a">
<variable name="number_equal_a"/>
<literalExpression>
<text>10 in !=10</text>
</literalExpression>
</decision>
<decision name="number_greater_than_or_equal" id="number_greater_than_or_equal">
<variable name="number_greater_than_or_equal"/>
<literalExpression>
<text>10 in >=11</text>
</literalExpression>
</decision>
<decision name="number_greater_than_or_equal_a" id="number_greater_than_or_equal_a">
<variable name="number_greater_than_or_equal_a"/>
<literalExpression>
<text>10 in >=10</text>
</literalExpression>
</decision>
<decision name="number_greater_than_or_equal_b" id="number_greater_than_or_equal_b">
<variable name="number_greater_than_or_equal_b"/>
<literalExpression>
<text>10 in >=9</text>
</literalExpression>
</decision>
<decision name="number_less_than_or_equal" id="number_less_than_or_equal">
<variable name="number_less_than_or_equal"/>
<literalExpression>
<text>10 in &lt;=9</text>
</literalExpression>
</decision>
<decision name="number_less_than_or_equal_a" id="number_less_than_or_equal_a">
<variable name="number_less_than_or_equal_a"/>
<literalExpression>
<text>10 in &lt;=10</text>
</literalExpression>
</decision>
<decision name="number_less_than_or_equal_b" id="number_less_than_or_equal_b">
<variable name="number_less_than_or_equal_b"/>
<literalExpression>
<text>10 in &lt;=11</text>
</literalExpression>
</decision>
<decision name="number_greater_than" id="number_greater_than">
<variable name="number_greater_than"/>
<literalExpression>
<text>10 in >9</text>
</literalExpression>
</decision>
<decision name="number_greater_than_a" id="number_greater_than_a">
<variable name="number_greater_than_a"/>
<literalExpression>
<text>10 in >10</text>
</literalExpression>
</decision>
<decision name="number_less_than" id="number_less_than">
<variable name="number_less_than"/>
<literalExpression>
<text>10 in &lt;11</text>
</literalExpression>
</decision>
<decision name="number_less_than_a" id="number_less_than_a">
<variable name="number_less_than_a"/>
<literalExpression>
<text>10 in &lt;10</text>
</literalExpression>
</decision>
</definitions>