-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d1bd38
commit 8554859
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
TestCases/compliance-level-3/1148-feel-today-function/1148-feel-today-function-test-01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<!-- Contributed to DMN TCK by StrayAlien --> | ||
<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>1148-feel-today-function.dmn</modelName> | ||
<labels> | ||
<label>Compliance Level 3</label> | ||
<label>Data Type: date</label> | ||
<label>FEEL Functions: miscellaneous</label> | ||
</labels> | ||
|
||
<testCase id="001"> | ||
<description>Will give date</description> | ||
<resultNode name="decision001" type="decision"> | ||
<expected> | ||
<value xsi:type="xsd:boolean">true</value> | ||
</expected> | ||
</resultNode> | ||
</testCase> | ||
|
||
<testCase id="002"> | ||
<description>Too many params gives null</description> | ||
<resultNode name="decision002" type="decision" errorResult="true"> | ||
<expected> | ||
<value xsi:nil="true"/> | ||
</expected> | ||
</resultNode> | ||
</testCase> | ||
|
||
|
||
|
||
</testCases> |
28 changes: 28 additions & 0 deletions
28
TestCases/compliance-level-3/1148-feel-today-function/1148-feel-today-function.dmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<definitions namespace="http://www.montera.com.au/spec/DMN/1148-feel-today-function" | ||
name="1148-feel-today-function" | ||
id="_i9fboPUUEeesLuP4RHs4vA" | ||
xmlns="https://www.omg.org/spec/DMN/20211108/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"> | ||
<description>FEEL built-in function 'today()' in category miscellaneous functions</description> | ||
|
||
<decision name="decision001" id="_decision001"> | ||
<variable name="decision001"/> | ||
<literalExpression> | ||
<text>today() instance of date</text> | ||
</literalExpression> | ||
</decision> | ||
|
||
<decision name="decision002" id="_decision002"> | ||
<variable name="decision002"/> | ||
<literalExpression> | ||
<text>today(123)</text> | ||
</literalExpression> | ||
</decision> | ||
|
||
|
||
</definitions> | ||
|