From 99ff440d120bea6f71bfbbe72debc43285202435 Mon Sep 17 00:00:00 2001 From: StrayAlien Date: Wed, 15 May 2024 15:37:19 +1000 Subject: [PATCH] arithmetic negation of durations --- .../0099-arithmetic-negation-test-01.xml | 68 +++++++++---------- .../0099-arithmetic-negation.dmn | 63 ++++++++--------- 2 files changed, 60 insertions(+), 71 deletions(-) diff --git a/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation-test-01.xml b/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation-test-01.xml index a10a4c19b..fa5af9301 100644 --- a/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation-test-01.xml +++ b/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation-test-01.xml @@ -24,45 +24,41 @@ - - - - - - - - - + + negate days and time duration + + + -P1D + + + - - - - - - - - - + + negate a negative days and time duration + + + P1D + + + - - - - - - - - - + + negate years and months duration + + + -P1Y + + + - - - - - - - - - + + negate a negative years and months duration + + + P1Y + + + negate date gives null diff --git a/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation.dmn b/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation.dmn index c6d0d46b8..a738f4ce8 100644 --- a/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation.dmn +++ b/TestCases/compliance-level-3/0099-arithmetic-negation/0099-arithmetic-negation.dmn @@ -3,10 +3,7 @@ name="0099-arithmetic-negation" id="_i9fboPUUEeesLuP4RHs4vA" xmlns="https://www.omg.org/spec/DMN/20230324/MODEL/" - xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" - xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/" - xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> +> arithmetic negation @@ -23,37 +20,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + -@"P1D" + + + + + + + -@"-P1D" + + + + + + + -@"P1Y" + + + + + + + -@"-P1Y" + +