| 1 | [ |
| 2 | { |
| 3 | "id": "1102-feel-ceiling-function:001:decision001", |
| 4 | "expression": "ceiling(1.5)", |
| 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": "1102-feel-ceiling-function:002:decision002", |
| 13 | "expression": "ceiling(-1.5)", |
| 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": "1102-feel-ceiling-function:003:decision003", |
| 22 | "expression": "ceiling(-0.3333)", |
| 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": "1102-feel-ceiling-function:004:decision004", |
| 31 | "expression": "ceiling(1.56, 1)", |
| 32 | "expected": 1.6, |
| 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": "1102-feel-ceiling-function:005:decision005", |
| 40 | "expression": "ceiling(-1.56, 1)", |
| 41 | "expected": -1.5, |
| 42 | "expected_type": "number", |
| 43 | "comparison": "f64_epsilon", |
| 44 | "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.", |
| 45 | "epsilon": 1e-08 |
| 46 | }, |
| 47 | { |
| 48 | "id": "1102-feel-ceiling-function:006:decision006", |
| 49 | "expression": "ceiling(null, 1)", |
| 50 | "expected": null, |
| 51 | "expected_type": "null", |
| 52 | "comparison": "exact", |
| 53 | "deviation": null |
| 54 | }, |
| 55 | { |
| 56 | "id": "1102-feel-ceiling-function:007:decision007", |
| 57 | "expression": "ceiling(n:null, scale:1)", |
| 58 | "expected": null, |
| 59 | "expected_type": "null", |
| 60 | "comparison": "exact", |
| 61 | "deviation": null |
| 62 | }, |
| 63 | { |
| 64 | "id": "1102-feel-ceiling-function:008:decision008", |
| 65 | "expression": "ceiling(1.56, null)", |
| 66 | "expected": null, |
| 67 | "expected_type": "null", |
| 68 | "comparison": "exact", |
| 69 | "deviation": null |
| 70 | }, |
| 71 | { |
| 72 | "id": "1102-feel-ceiling-function:009:decision009", |
| 73 | "expression": "ceiling(n:1.56, scale:null)", |
| 74 | "expected": null, |
| 75 | "expected_type": "null", |
| 76 | "comparison": "exact", |
| 77 | "deviation": null |
| 78 | }, |
| 79 | { |
| 80 | "id": "1102-feel-ceiling-function:010:decision010", |
| 81 | "expression": "ceiling()", |
| 82 | "expected": null, |
| 83 | "expected_type": "null", |
| 84 | "comparison": "exact", |
| 85 | "deviation": null |
| 86 | }, |
| 87 | { |
| 88 | "id": "1102-feel-ceiling-function:011:decision011", |
| 89 | "expression": "ceiling(1.5, 1, 2)", |
| 90 | "expected": null, |
| 91 | "expected_type": "null", |
| 92 | "comparison": "exact", |
| 93 | "deviation": null |
| 94 | }, |
| 95 | { |
| 96 | "id": "1102-feel-ceiling-function:012:decision012", |
| 97 | "expression": "ceiling(n:1.5, scale:1, stuff:2)", |
| 98 | "expected": null, |
| 99 | "expected_type": "null", |
| 100 | "comparison": "exact", |
| 101 | "deviation": null |
| 102 | }, |
| 103 | { |
| 104 | "id": "1102-feel-ceiling-function:013:decision013", |
| 105 | "expression": "ceiling(n:1.5, scal:1)", |
| 106 | "expected": null, |
| 107 | "expected_type": "null", |
| 108 | "comparison": "exact", |
| 109 | "deviation": null |
| 110 | }, |
| 111 | { |
| 112 | "id": "1102-feel-ceiling-function:014:decision014", |
| 113 | "expression": "ceiling(\"1.5\")", |
| 114 | "expected": null, |
| 115 | "expected_type": "null", |
| 116 | "comparison": "exact", |
| 117 | "deviation": null |
| 118 | }, |
| 119 | { |
| 120 | "id": "1102-feel-ceiling-function:015:decision015", |
| 121 | "expression": "ceiling(1.5, \"1\")", |
| 122 | "expected": null, |
| 123 | "expected_type": "null", |
| 124 | "comparison": "exact", |
| 125 | "deviation": null |
| 126 | }, |
| 127 | { |
| 128 | "id": "1102-feel-ceiling-function:016:decision016", |
| 129 | "expression": "ceiling(n:\"1.5\")", |
| 130 | "expected": null, |
| 131 | "expected_type": "null", |
| 132 | "comparison": "exact", |
| 133 | "deviation": null |
| 134 | }, |
| 135 | { |
| 136 | "id": "1102-feel-ceiling-function:017:decision017", |
| 137 | "expression": "ceiling(n:1.5, scale:\"1\")", |
| 138 | "expected": null, |
| 139 | "expected_type": "null", |
| 140 | "comparison": "exact", |
| 141 | "deviation": null |
| 142 | } |
| 143 | ] |