| 1 | [ |
| 2 | { |
| 3 | "id": "0061-feel-median-function:001:decision001", |
| 4 | "expression": "median([8, 2, 5, 3, 4])", |
| 5 | "expected": 4.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": "0061-feel-median-function:002:decision002", |
| 13 | "expression": "median([8, 2, 5, 7])", |
| 14 | "expected": 6.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": "0061-feel-median-function:003:decision003", |
| 22 | "expression": "median()", |
| 23 | "expected": null, |
| 24 | "expected_type": "null", |
| 25 | "comparison": "exact", |
| 26 | "deviation": null |
| 27 | }, |
| 28 | { |
| 29 | "id": "0061-feel-median-function:003_a:decision003_a", |
| 30 | "expression": "median(null)", |
| 31 | "expected": null, |
| 32 | "expected_type": "null", |
| 33 | "comparison": "exact", |
| 34 | "deviation": null |
| 35 | }, |
| 36 | { |
| 37 | "id": "0061-feel-median-function:004:decision004", |
| 38 | "expression": "median()", |
| 39 | "expected": null, |
| 40 | "expected_type": "null", |
| 41 | "comparison": "exact", |
| 42 | "deviation": null |
| 43 | }, |
| 44 | { |
| 45 | "id": "0061-feel-median-function:005:decision005", |
| 46 | "expression": "median([1,2,\"foo\",4])", |
| 47 | "expected": null, |
| 48 | "expected_type": "null", |
| 49 | "comparison": "exact", |
| 50 | "deviation": null |
| 51 | }, |
| 52 | { |
| 53 | "id": "0061-feel-median-function:006:decision006", |
| 54 | "expression": "median([6, 1, 2, 3])", |
| 55 | "expected": 2.5, |
| 56 | "expected_type": "number", |
| 57 | "comparison": "f64_epsilon", |
| 58 | "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.", |
| 59 | "epsilon": 1e-08 |
| 60 | }, |
| 61 | { |
| 62 | "id": "0061-feel-median-function:007:decision007", |
| 63 | "expression": "median([])", |
| 64 | "expected": null, |
| 65 | "expected_type": "null", |
| 66 | "comparison": "exact", |
| 67 | "deviation": null |
| 68 | }, |
| 69 | { |
| 70 | "id": "0061-feel-median-function:008:decision008", |
| 71 | "expression": "median(4)", |
| 72 | "expected": 4.0, |
| 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": "0061-feel-median-function:009:decision009", |
| 80 | "expression": "median(8, 2, 5, 3, 4)", |
| 81 | "expected": 4.0, |
| 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": "0061-feel-median-function:010:decision010", |
| 89 | "expression": "median(8, 2, 5, 7)", |
| 90 | "expected": 6.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 | ] |