| 1 | [ |
| 2 | { |
| 3 | "id": "0050-feel-abs-function:001:decision001", |
| 4 | "expression": "abs(1)", |
| 5 | "expected": 1.0, |
| 6 | "expected_type": "number", |
| 7 | "comparison": "f64_epsilon", |
| 8 | "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", |
| 9 | "epsilon": 1e-08 |
| 10 | }, |
| 11 | { |
| 12 | "id": "0050-feel-abs-function:002:decision002", |
| 13 | "expression": "abs(-1)", |
| 14 | "expected": 1.0, |
| 15 | "expected_type": "number", |
| 16 | "comparison": "f64_epsilon", |
| 17 | "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", |
| 18 | "epsilon": 1e-08 |
| 19 | }, |
| 20 | { |
| 21 | "id": "0050-feel-abs-function:003:decision003", |
| 22 | "expression": "abs(0)", |
| 23 | "expected": 0.0, |
| 24 | "expected_type": "number", |
| 25 | "comparison": "f64_epsilon", |
| 26 | "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", |
| 27 | "epsilon": 1e-08 |
| 28 | }, |
| 29 | { |
| 30 | "id": "0050-feel-abs-function:004:decision004", |
| 31 | "expression": "abs()", |
| 32 | "expected": null, |
| 33 | "expected_type": "null", |
| 34 | "comparison": "exact", |
| 35 | "deviation": null |
| 36 | }, |
| 37 | { |
| 38 | "id": "0050-feel-abs-function:005:decision005", |
| 39 | "expression": "abs(1,1)", |
| 40 | "expected": null, |
| 41 | "expected_type": "null", |
| 42 | "comparison": "exact", |
| 43 | "deviation": null |
| 44 | }, |
| 45 | { |
| 46 | "id": "0050-feel-abs-function:006:decision006", |
| 47 | "expression": "abs(n:-1)", |
| 48 | "expected": 1.0, |
| 49 | "expected_type": "number", |
| 50 | "comparison": "f64_epsilon", |
| 51 | "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", |
| 52 | "epsilon": 1e-08 |
| 53 | }, |
| 54 | { |
| 55 | "id": "0050-feel-abs-function:007:decision007", |
| 56 | "expression": "abs(number:-1)", |
| 57 | "expected": null, |
| 58 | "expected_type": "null", |
| 59 | "comparison": "exact", |
| 60 | "deviation": null |
| 61 | }, |
| 62 | { |
| 63 | "id": "0050-feel-abs-function:008:decision008", |
| 64 | "expression": "abs(null)", |
| 65 | "expected": null, |
| 66 | "expected_type": "null", |
| 67 | "comparison": "exact", |
| 68 | "deviation": null |
| 69 | }, |
| 70 | { |
| 71 | "id": "0050-feel-abs-function:009:decision009", |
| 72 | "expression": "abs(\"-1\")", |
| 73 | "expected": null, |
| 74 | "expected_type": "null", |
| 75 | "comparison": "exact", |
| 76 | "deviation": null |
| 77 | }, |
| 78 | { |
| 79 | "id": "0050-feel-abs-function:010:decision010", |
| 80 | "expression": "abs(true)", |
| 81 | "expected": null, |
| 82 | "expected_type": "null", |
| 83 | "comparison": "exact", |
| 84 | "deviation": null |
| 85 | }, |
| 86 | { |
| 87 | "id": "0050-feel-abs-function:011:decision011", |
| 88 | "expression": "abs(duration(\"-P1D\"))", |
| 89 | "expected": "P1D", |
| 90 | "expected_type": "duration", |
| 91 | "comparison": "exact", |
| 92 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 93 | }, |
| 94 | { |
| 95 | "id": "0050-feel-abs-function:011_a:decision011_a", |
| 96 | "expression": "abs(duration(\"P1D\"))", |
| 97 | "expected": "P1D", |
| 98 | "expected_type": "duration", |
| 99 | "comparison": "exact", |
| 100 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 101 | }, |
| 102 | { |
| 103 | "id": "0050-feel-abs-function:012:decision012", |
| 104 | "expression": "abs(duration(\"-P1Y\"))", |
| 105 | "expected": "P1Y", |
| 106 | "expected_type": "duration", |
| 107 | "comparison": "exact", |
| 108 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 109 | }, |
| 110 | { |
| 111 | "id": "0050-feel-abs-function:012_a:decision012_a", |
| 112 | "expression": "abs(duration(\"P1Y\"))", |
| 113 | "expected": "P1Y", |
| 114 | "expected_type": "duration", |
| 115 | "comparison": "exact", |
| 116 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 117 | }, |
| 118 | { |
| 119 | "id": "0050-feel-abs-function:013:decision013", |
| 120 | "expression": "abs(date(\"-2018-12-06\"))", |
| 121 | "expected": null, |
| 122 | "expected_type": "null", |
| 123 | "comparison": "exact", |
| 124 | "deviation": null |
| 125 | }, |
| 126 | { |
| 127 | "id": "0050-feel-abs-function:014:decision014", |
| 128 | "expression": "abs(time(\"00:00:00\"))", |
| 129 | "expected": null, |
| 130 | "expected_type": "null", |
| 131 | "comparison": "exact", |
| 132 | "deviation": null |
| 133 | }, |
| 134 | { |
| 135 | "id": "0050-feel-abs-function:015:decision015", |
| 136 | "expression": "abs(date and time(\"2018-12-06T00:00:00\"))", |
| 137 | "expected": null, |
| 138 | "expected_type": "null", |
| 139 | "comparison": "exact", |
| 140 | "deviation": null |
| 141 | } |
| 142 | ] |