| 1 | [ |
| 2 | { |
| 3 | "id": "0056-feel-modulo-function:001:decision001", |
| 4 | "expression": "modulo(10, 4)", |
| 5 | "expected": 2.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": "0056-feel-modulo-function:001_a:decision001_a", |
| 13 | "expression": "modulo(10, -4)", |
| 14 | "expected": -2.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": "0056-feel-modulo-function:002:decision002", |
| 22 | "expression": "modulo(-10, 4)", |
| 23 | "expected": 2.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": "0056-feel-modulo-function:003:decision003", |
| 31 | "expression": "modulo(0, 4)", |
| 32 | "expected": 0.0, |
| 33 | "expected_type": "number", |
| 34 | "comparison": "f64_epsilon", |
| 35 | "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.", |
| 36 | "epsilon": 1e-08 |
| 37 | }, |
| 38 | { |
| 39 | "id": "0056-feel-modulo-function:003_a:decision003_a", |
| 40 | "expression": "modulo(10, 0)", |
| 41 | "expected": null, |
| 42 | "expected_type": "null", |
| 43 | "comparison": "exact", |
| 44 | "deviation": null |
| 45 | }, |
| 46 | { |
| 47 | "id": "0056-feel-modulo-function:004:decision004", |
| 48 | "expression": "modulo()", |
| 49 | "expected": null, |
| 50 | "expected_type": "null", |
| 51 | "comparison": "exact", |
| 52 | "deviation": null |
| 53 | }, |
| 54 | { |
| 55 | "id": "0056-feel-modulo-function:005:decision005", |
| 56 | "expression": "modulo(4)", |
| 57 | "expected": null, |
| 58 | "expected_type": "null", |
| 59 | "comparison": "exact", |
| 60 | "deviation": null |
| 61 | }, |
| 62 | { |
| 63 | "id": "0056-feel-modulo-function:005_a:decision005_a", |
| 64 | "expression": "modulo(4,4,4)", |
| 65 | "expected": null, |
| 66 | "expected_type": "null", |
| 67 | "comparison": "exact", |
| 68 | "deviation": null |
| 69 | }, |
| 70 | { |
| 71 | "id": "0056-feel-modulo-function:006:decision006", |
| 72 | "expression": "modulo(dividend:10, divisor:4)", |
| 73 | "expected": 2.0, |
| 74 | "expected_type": "number", |
| 75 | "comparison": "f64_epsilon", |
| 76 | "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.", |
| 77 | "epsilon": 1e-08 |
| 78 | }, |
| 79 | { |
| 80 | "id": "0056-feel-modulo-function:007:decision007", |
| 81 | "expression": "modulo(dividend:10, foo:4)", |
| 82 | "expected": null, |
| 83 | "expected_type": "null", |
| 84 | "comparison": "exact", |
| 85 | "deviation": null |
| 86 | }, |
| 87 | { |
| 88 | "id": "0056-feel-modulo-function:008:decision008", |
| 89 | "expression": "modulo(null, null)", |
| 90 | "expected": null, |
| 91 | "expected_type": "null", |
| 92 | "comparison": "exact", |
| 93 | "deviation": null |
| 94 | }, |
| 95 | { |
| 96 | "id": "0056-feel-modulo-function:008_a:decision008_a", |
| 97 | "expression": "modulo(10, null)", |
| 98 | "expected": null, |
| 99 | "expected_type": "null", |
| 100 | "comparison": "exact", |
| 101 | "deviation": null |
| 102 | }, |
| 103 | { |
| 104 | "id": "0056-feel-modulo-function:008_b:decision008_b", |
| 105 | "expression": "modulo(null, 4)", |
| 106 | "expected": null, |
| 107 | "expected_type": "null", |
| 108 | "comparison": "exact", |
| 109 | "deviation": null |
| 110 | }, |
| 111 | { |
| 112 | "id": "0056-feel-modulo-function:009:decision009", |
| 113 | "expression": "modulo(\"10\", \"4\")", |
| 114 | "expected": null, |
| 115 | "expected_type": "null", |
| 116 | "comparison": "exact", |
| 117 | "deviation": null |
| 118 | }, |
| 119 | { |
| 120 | "id": "0056-feel-modulo-function:010:decision010", |
| 121 | "expression": "modulo(true, true)", |
| 122 | "expected": null, |
| 123 | "expected_type": "null", |
| 124 | "comparison": "exact", |
| 125 | "deviation": null |
| 126 | }, |
| 127 | { |
| 128 | "id": "0056-feel-modulo-function:011:decision011", |
| 129 | "expression": "modulo(duration(\"P10D\"), 4)", |
| 130 | "expected": null, |
| 131 | "expected_type": "null", |
| 132 | "comparison": "exact", |
| 133 | "deviation": null |
| 134 | }, |
| 135 | { |
| 136 | "id": "0056-feel-modulo-function:012:decision012", |
| 137 | "expression": "modulo(duration(\"P10Y\"), 4)", |
| 138 | "expected": null, |
| 139 | "expected_type": "null", |
| 140 | "comparison": "exact", |
| 141 | "deviation": null |
| 142 | }, |
| 143 | { |
| 144 | "id": "0056-feel-modulo-function:013:decision013", |
| 145 | "expression": "modulo(date(\"2018-12-06\"), 4)", |
| 146 | "expected": null, |
| 147 | "expected_type": "null", |
| 148 | "comparison": "exact", |
| 149 | "deviation": null |
| 150 | }, |
| 151 | { |
| 152 | "id": "0056-feel-modulo-function:014:decision014", |
| 153 | "expression": "modulo(time(\"10:00:00\"), 4)", |
| 154 | "expected": null, |
| 155 | "expected_type": "null", |
| 156 | "comparison": "exact", |
| 157 | "deviation": null |
| 158 | }, |
| 159 | { |
| 160 | "id": "0056-feel-modulo-function:015:decision015", |
| 161 | "expression": "modulo(date and time(\"2018-12-06T00:00:00\"), 4)", |
| 162 | "expected": null, |
| 163 | "expected_type": "null", |
| 164 | "comparison": "exact", |
| 165 | "deviation": null |
| 166 | }, |
| 167 | { |
| 168 | "id": "0056-feel-modulo-function:016a:decision016a", |
| 169 | "expression": "modulo(12, 5)", |
| 170 | "expected": 2.0, |
| 171 | "expected_type": "number", |
| 172 | "comparison": "f64_epsilon", |
| 173 | "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.", |
| 174 | "epsilon": 1e-08 |
| 175 | }, |
| 176 | { |
| 177 | "id": "0056-feel-modulo-function:016b:decision016b", |
| 178 | "expression": "modulo(-12, 5)", |
| 179 | "expected": 3.0, |
| 180 | "expected_type": "number", |
| 181 | "comparison": "f64_epsilon", |
| 182 | "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.", |
| 183 | "epsilon": 1e-08 |
| 184 | }, |
| 185 | { |
| 186 | "id": "0056-feel-modulo-function:016c:decision016c", |
| 187 | "expression": "modulo(12, -5)", |
| 188 | "expected": -3.0, |
| 189 | "expected_type": "number", |
| 190 | "comparison": "f64_epsilon", |
| 191 | "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.", |
| 192 | "epsilon": 1e-08 |
| 193 | }, |
| 194 | { |
| 195 | "id": "0056-feel-modulo-function:016d:decision016d", |
| 196 | "expression": "modulo(-12, -5)", |
| 197 | "expected": -2.0, |
| 198 | "expected_type": "number", |
| 199 | "comparison": "f64_epsilon", |
| 200 | "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.", |
| 201 | "epsilon": 1e-08 |
| 202 | }, |
| 203 | { |
| 204 | "id": "0056-feel-modulo-function:017a:decision017a", |
| 205 | "expression": "modulo(10.1, 4.5)", |
| 206 | "expected": 1.1, |
| 207 | "expected_type": "number", |
| 208 | "comparison": "f64_epsilon", |
| 209 | "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.", |
| 210 | "epsilon": 1e-08 |
| 211 | }, |
| 212 | { |
| 213 | "id": "0056-feel-modulo-function:017b:decision017b", |
| 214 | "expression": "modulo(-10.1, 4.5)", |
| 215 | "expected": 3.4, |
| 216 | "expected_type": "number", |
| 217 | "comparison": "f64_epsilon", |
| 218 | "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.", |
| 219 | "epsilon": 1e-08 |
| 220 | }, |
| 221 | { |
| 222 | "id": "0056-feel-modulo-function:017c:decision017c", |
| 223 | "expression": "modulo(10.1, -4.5)", |
| 224 | "expected": -3.4, |
| 225 | "expected_type": "number", |
| 226 | "comparison": "f64_epsilon", |
| 227 | "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.", |
| 228 | "epsilon": 1e-08 |
| 229 | }, |
| 230 | { |
| 231 | "id": "0056-feel-modulo-function:017d:decision017d", |
| 232 | "expression": "modulo(-10.1, -4.5)", |
| 233 | "expected": -1.1, |
| 234 | "expected_type": "number", |
| 235 | "comparison": "f64_epsilon", |
| 236 | "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.", |
| 237 | "epsilon": 1e-08 |
| 238 | } |
| 239 | ] |