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

Reflect TCK test cases errorResult flag where missing #359

Merged

Conversation

tarilabs
Copy link
Member

@tarilabs tarilabs commented Mar 3, 2020

No description provided.

@StrayAlien
Copy link
Contributor

Hi @tarilabs - I hope you are well and enjoying the start of spring. Nice to see some activity here. We're just going into autumn. :-) I'll be able to check this in practice maybe this weekend. At one stage I did turn on a flag to see whether we had this flag set in all places correctly and I recall there being quite a few places where it was not. I'll check.

@@ -37,7 +37,7 @@

<testCase id="004">
<description>return null if any item is not true or false</description>
<resultNode name="decision004" type="decision">
<resultNode errorResult="true" name="decision004" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

list of Boolean items

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

@@ -73,7 +73,7 @@

<testCase id="008">
<description>return null for singleton null</description>
<resultNode name="decision008" type="decision">
<resultNode errorResult="true" name="decision008" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

list of Boolean items or argument list of one or more Boolean items

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

@@ -82,7 +82,7 @@

<testCase id="009">
<description>return null for singleton non-boolean</description>
<resultNode name="decision009" type="decision">
<resultNode errorResult="true" name="decision009" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

list of Boolean items or argument list of one or more Boolean items

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

@@ -118,7 +118,7 @@

<testCase id="013">
<description>return null if any vararg item is not true or false</description>
<resultNode name="decision013" type="decision">
<resultNode errorResult="true" name="decision013" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

list of Boolean items or argument list of one or more Boolean items

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

@@ -27,7 +27,7 @@

<testCase id="004">
<description>return null if any item not true and not all false</description>
<resultNode name="decision004" type="decision">
<resultNode errorResult="true" name="decision004" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

list of Boolean items or argument list of one or more Boolean items

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

@@ -32,23 +32,23 @@
</testCase>

<testCase id="003_b">
<resultNode name="decision003_b" type="decision">
<resultNode errorResult="true" name="decision003_b" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

Parameter Domain: boolean

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

<expected>
<value xsi:nil="true"/>
</expected>
</resultNode>
</testCase>

<testCase id="003_c">
<resultNode name="decision003_c" type="decision">
<resultNode errorResult="true" name="decision003_c" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

Parameter Domain: boolean

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

<expected>
<value xsi:nil="true"/>
</expected>
</resultNode>
</testCase>

<testCase id="003_d">
<resultNode name="decision003_d" type="decision">
<resultNode errorResult="true" name="decision003_d" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case:

DMN Spec:

Parameter Domain: boolean

Concur in the result, but I believe is missing the errorFlag to clarify this is an error case

<description>null value stored in context</description>
<resultNode name="decision_011" type="decision">
<description>null map and key params</description>
<resultNode errorResult="true" name="decision_011" type="decision">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test case:

So this is about extracting the entry null in a null context, not the original submission.
Reflecting on the correct test DMN model decision logic.
Additionally, this is an error case, putting the flag.

<expected>
<value xsi:nil="true"></value>
</expected>
</resultNode>
</testCase>

<testCase id="decision_012">
<description>null value stored in context</description>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the original submission for

null value stored in context

shall refer, I believe, to test case:

which is decision logic decision decision_012 .

Created accordingly and aligned, a non-error test case where the expected result is the null stored in the context entry for "a".

@tarilabs
Copy link
Member Author

tarilabs commented Mar 3, 2020

Ciao @StrayAlien hope all is fine with you too, despite I've heard this Australian summer was problematic in terms of wildfires. We are experiencing quite some difficulties here due to COVID-19 but trying to manage somehow.

Just a brief reminder this TCK flag is meant to hint, in my understanding from original TCK decisions.

The reason I raised this PR. We improved on Drools DMN engine side some small bits here and there, I noticed at the same time these flags might have been missing from the TCK, so I thought worthy to align them, in the hope this helps other TCK result submitters.

tarilabs added a commit to tarilabs/dmn-tck that referenced this pull request Apr 8, 2020
@tarilabs
Copy link
Member Author

tarilabs commented May 3, 2020

As discussed at TCK meeting 2020-04-24, will proceed to merge.

@tarilabs tarilabs merged commit db0ff30 into dmn-tck:master May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants