| 1 | [ |
| 2 | { |
| 3 | "id": "0058-feel-number-function:001:decision001", |
| 4 | "expression": "number(\"1.000.000,01\", \".\", \",\")", |
| 5 | "expected": 1000000.01, |
| 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": "0058-feel-number-function:002:decision002", |
| 13 | "expression": "number(\"1,000,000.01\", \",\", \".\")", |
| 14 | "expected": 1000000.01, |
| 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": "0058-feel-number-function:003:decision003", |
| 22 | "expression": "number(\"1 000 000.01\", \" \", \".\")", |
| 23 | "expected": 1000000.01, |
| 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": "0058-feel-number-function:003_a:decision003_a", |
| 31 | "expression": "number(\"1,000,000.01\", \" \", \".\")", |
| 32 | "expected": null, |
| 33 | "expected_type": "null", |
| 34 | "comparison": "exact", |
| 35 | "deviation": null |
| 36 | }, |
| 37 | { |
| 38 | "id": "0058-feel-number-function:004:decision004", |
| 39 | "expression": "number(\"1,000,000.01\", \":\", \".\")", |
| 40 | "expected": null, |
| 41 | "expected_type": "null", |
| 42 | "comparison": "exact", |
| 43 | "deviation": null |
| 44 | }, |
| 45 | { |
| 46 | "id": "0058-feel-number-function:004_a:decision004_a", |
| 47 | "expression": "number(\"1,000,000.01\", 123, \".\")", |
| 48 | "expected": null, |
| 49 | "expected_type": "null", |
| 50 | "comparison": "exact", |
| 51 | "deviation": null |
| 52 | }, |
| 53 | { |
| 54 | "id": "0058-feel-number-function:004_b:decision004_b", |
| 55 | "expression": "number(\"1,000,000.01\", \",\", \":\")", |
| 56 | "expected": null, |
| 57 | "expected_type": "null", |
| 58 | "comparison": "exact", |
| 59 | "deviation": null |
| 60 | }, |
| 61 | { |
| 62 | "id": "0058-feel-number-function:004_c:decision004_c", |
| 63 | "expression": "number(\"1,000,000.01\", \",\", 123)", |
| 64 | "expected": null, |
| 65 | "expected_type": "null", |
| 66 | "comparison": "exact", |
| 67 | "deviation": null |
| 68 | }, |
| 69 | { |
| 70 | "id": "0058-feel-number-function:005:decision005", |
| 71 | "expression": "number(\"1000000.01\", null, \".\")", |
| 72 | "expected": 1000000.01, |
| 73 | "expected_type": "number", |
| 74 | "comparison": "f64_epsilon", |
| 75 | "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.", |
| 76 | "epsilon": 1e-08 |
| 77 | }, |
| 78 | { |
| 79 | "id": "0058-feel-number-function:006:decision006", |
| 80 | "expression": "number(\"1,000,000.01\", \",\", \".\")", |
| 81 | "expected": 1000000.01, |
| 82 | "expected_type": "number", |
| 83 | "comparison": "f64_epsilon", |
| 84 | "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.", |
| 85 | "epsilon": 1e-08 |
| 86 | }, |
| 87 | { |
| 88 | "id": "0058-feel-number-function:007:decision007", |
| 89 | "expression": "number(\"1,000,000\", \",\", null)", |
| 90 | "expected": 1000000.0, |
| 91 | "expected_type": "number", |
| 92 | "comparison": "f64_epsilon", |
| 93 | "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.", |
| 94 | "epsilon": 1e-08 |
| 95 | }, |
| 96 | { |
| 97 | "id": "0058-feel-number-function:008:decision008", |
| 98 | "expression": "number(\"1,000,000.00\", \",\", null)", |
| 99 | "expected": 1000000.0, |
| 100 | "expected_type": "number", |
| 101 | "comparison": "f64_epsilon", |
| 102 | "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.", |
| 103 | "epsilon": 1e-08 |
| 104 | }, |
| 105 | { |
| 106 | "id": "0058-feel-number-function:009:decision009", |
| 107 | "expression": "number(\"1,000,000.00\", \",\", \",\")", |
| 108 | "expected": null, |
| 109 | "expected_type": "null", |
| 110 | "comparison": "exact", |
| 111 | "deviation": null |
| 112 | }, |
| 113 | { |
| 114 | "id": "0058-feel-number-function:010:decision010", |
| 115 | "expression": "number(\"1,000,000.00\", \".\", \".\")", |
| 116 | "expected": null, |
| 117 | "expected_type": "null", |
| 118 | "comparison": "exact", |
| 119 | "deviation": null |
| 120 | }, |
| 121 | { |
| 122 | "id": "0058-feel-number-function:011:decision011", |
| 123 | "expression": "number(null, \".\", \".\")", |
| 124 | "expected": null, |
| 125 | "expected_type": "null", |
| 126 | "comparison": "exact", |
| 127 | "deviation": null |
| 128 | }, |
| 129 | { |
| 130 | "id": "0058-feel-number-function:012:decision012", |
| 131 | "expression": "number(123, \".\", \".\")", |
| 132 | "expected": null, |
| 133 | "expected_type": "null", |
| 134 | "comparison": "exact", |
| 135 | "deviation": null |
| 136 | }, |
| 137 | { |
| 138 | "id": "0058-feel-number-function:013:decision013", |
| 139 | "expression": "number(from: \"1.000.000,01\", decimal separator:\",\", grouping separator:\".\")", |
| 140 | "expected": 1000000.01, |
| 141 | "expected_type": "number", |
| 142 | "comparison": "f64_epsilon", |
| 143 | "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.", |
| 144 | "epsilon": 1e-08 |
| 145 | }, |
| 146 | { |
| 147 | "id": "0058-feel-number-function:014:decision014", |
| 148 | "expression": "number(from: \"1.000.000,01\", decimal sep:\",\", grouping sep:\".\")", |
| 149 | "expected": null, |
| 150 | "expected_type": "null", |
| 151 | "comparison": "exact", |
| 152 | "deviation": null |
| 153 | }, |
| 154 | { |
| 155 | "id": "0058-feel-number-function:015:decision015", |
| 156 | "expression": "number(\"foo,bar.001\", \".\", \",\")", |
| 157 | "expected": null, |
| 158 | "expected_type": "null", |
| 159 | "comparison": "exact", |
| 160 | "deviation": null |
| 161 | }, |
| 162 | { |
| 163 | "id": "0058-feel-number-function:016:decision016", |
| 164 | "expression": "number(\"1.000.000,01\", \".\")", |
| 165 | "expected": null, |
| 166 | "expected_type": "null", |
| 167 | "comparison": "exact", |
| 168 | "deviation": null |
| 169 | }, |
| 170 | { |
| 171 | "id": "0058-feel-number-function:017:decision017", |
| 172 | "expression": "number(\"1.000.000,01\", \".\", \",\", \",\")", |
| 173 | "expected": null, |
| 174 | "expected_type": "null", |
| 175 | "comparison": "exact", |
| 176 | "deviation": null |
| 177 | } |
| 178 | ] |