Skip to content

Commit

Permalink
test(feel): verify non-existing member access
Browse files Browse the repository at this point in the history
Ensures the following is true:

```
{ a: 1 }.b = null
```

Related to dmn-tck#537
  • Loading branch information
nikku committed Jan 19, 2023
1 parent d393bae commit 91ed70f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,12 @@
</resultNode>
</testCase>

<testCase id="non_existing_member_001">
<description>Test non-existing member access</description>
<resultNode name="non_existing_member_001" type="decision">
<expected>
<value xsi:nil="true"/>
</expected>
</resultNode>
</testCase>
</testCases>
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,14 @@
</literalExpression>
</decision>

<decision name="non_exsting_member_001" id="_non_existing_member_001">
<variable name="non_exsting_member_001"/>
<literalExpression>
<text>
{ a: 1 }.b
</text>
</literalExpression>
</decision>

</definitions>

0 comments on commit 91ed70f

Please sign in to comment.