From b5d546022a0775d289277dcf9d3c55b37d44db84 Mon Sep 17 00:00:00 2001 From: StrayAlien Date: Thu, 25 Jul 2024 11:15:39 +1000 Subject: [PATCH] extra assertions for the range properties for `=` and `!=`. I have changed the structure of the tests to make then less spread out. In effect, each range test asserts on a context of its property values. Keeps stuff together. All the previous test assertions are still here. --- .../0074-feel-properties-test-01.xml | 338 ++++++------ .../0074-feel-properties.dmn | 498 +++++++++++------- 2 files changed, 456 insertions(+), 380 deletions(-) diff --git a/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties-test-01.xml b/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties-test-01.xml index 8d4dd1290..0e392f44e 100644 --- a/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties-test-01.xml +++ b/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties-test-01.xml @@ -407,268 +407,234 @@ + + + + + + + + + - range - start + range - [1..10] - 1 + + true + + + 1 + + + 10 + + + true + - range - end + range - (1..10] - 10 + + false + + + 1 + + + 10 + + + true + - range - start included + range - ]1..10] - true + + false + + + 1 + + + 10 + + + true + - range - start included '(' syntax + range - [1..10) - false + + true + + + 1 + + + 10 + + + false + - range - start included ']' syntax + range - [1..10[ - false + + true + + + 1 + + + 10 + + + false + - range - end included + range - (<10) - true + + false + + + + + + 10 + + + false + - range - end included ')' syntax + range - (<=10) - false - - - - - - range - end included '[' syntax - - - false + + false + + + + + + 10 + + + true + - range - start: LT unary syntax + range - (>10) - + + false + + + 10 + + + + + + false + - range - start: LE unary syntax + range - (>=10) - + + true + + + 10 + + + + + + false + - range - start: GT unary syntax + range - (=10) - 10 + + true + + + 10 + + + 10 + + + true + - range - start: GE unary syntax + range - (!=10) - 10 - - - - - - - - range - end: LT unary syntax - - - 10 - - - - - - range - end: LE unary syntax - - - 10 - - - - - - range - end: GT unary syntax - - - + + false + + + 10 + + + 10 + + + false + - - range - end: GE unary syntax - - - - - - - - - - - range - start included: LT unary syntax - - - false - - - - - - range - start included: LE unary syntax - - - false - - - - - - range - start included: GT unary syntax - - - false - - - - - - range - start included: GE unary syntax - - - true - - - - - - - - range - end included: LT unary syntax - - - false - - - - - - range - end included: LE unary syntax - - - true - - - - - - range - end included: GT unary syntax - - - false - - - - - - range - end included: GE unary syntax - - - false - - - - - diff --git a/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties.dmn b/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties.dmn index b6222b6b8..134a5b7d5 100644 --- a/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties.dmn +++ b/TestCases/compliance-level-3/0074-feel-properties/0074-feel-properties.dmn @@ -310,242 +310,352 @@ + + + + + + + + - - [1..10].start - + + + + + [1..10].start included + + + + + + [1..10].start + + + + + + [1..10].end + + + + + + [1..10].end included + + + + - - [1..10].end - + + + + + (1..10].start included + + + + + + (1..10].start + + + + + + (1..10].end + + + + + + (1..10].end included + + + + - - [1..10].start included - + + + + + ]1..10].start included + + + + + + ]1..10].start + + + + + + ]1..10].end + + + + + + ]1..10].end included + + + + - - (1..10].start included - - - - - - - (< 10).start included - - - - - - - (<= 10).start included - - - - - - - (> 10).start included - - - - - - - (>= 10).start included - + + + + + [1..10).start included + + + + + + [1..10).start + + + + + + [1..10).end + + + + + + [1..10).end included + + + + - - ]1..10].start included - + + + + + [1..10[.start included + + + + + + [1..10[.start + + + + + + [1..10[.end + + + + + + [1..10[.end included + + + + - - [1..10].end included - + + + + + (<10).start included + + + + + + (<10).start + + + + + + (<10).end + + + + + + (<10).end included + + + + - - [1..10).end included - - - - - - - [1..10[.end included - + + + + + (<=10).start included + + + + + + (<=10).start + + + + + + (<=10).end + + + + + + (<=10).end included + + + + - - (< 10).start - + + + + + (>10).start included + + + + + + (>10).start + + + + + + (>10).end + + + + + + (>10).end included + + + + - - (<= 10).start - + + + + + (>=10).start included + + + + + + (>=10).start + + + + + + (>=10).end + + + + + + (>=10).end included + + + + - - (> 10).start - + + + + + (=10).start included + + + + + + (=10).start + + + + + + (=10).end + + + + + + (=10).end included + + + + - - (>= 10).start - - - - - - - - - (< 10).end - - - - - - - (<= 10).end - + + + + + (!=10).start included + + + + + + (!=10).start + + + + + + (!=10).end + + + + + + (!=10).end included + + + - - - - (> 10).end - - - - - - - (>= 10).end - - - - - - - - - (< 10).start included - - - - - - - (<= 10).start included - - - - - - - (> 10).start included - - - - - - - (>= 10).start included - - - - - - - - - (< 10).end included - - - - - - - (<= 10).end included - - - - - - - (> 10).end included - - - - - - - (>= 10).end included - - - - - - - \ No newline at end of file