| 1 | [ |
| 2 | { |
| 3 | "id": "0095-feel-day-of-year-function:date_001:date_001", |
| 4 | "expression": "day of year(@\"1970-01-01\")", |
| 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": "0095-feel-day-of-year-function:date_002:date_002", |
| 13 | "expression": "day of year(@\"2019-12-31\")", |
| 14 | "expected": 365.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": "0095-feel-day-of-year-function:date_003:date_003", |
| 22 | "expression": "day of year(@\"2020-12-31\")", |
| 23 | "expected": 366.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": "0095-feel-day-of-year-function:date_004:date_004", |
| 31 | "expression": "day of year(@\"2019-09-17\")", |
| 32 | "expected": 260.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": "0095-feel-day-of-year-function:date_005:date_005", |
| 40 | "expression": "day of year(date_input_001)", |
| 41 | "expected": 1.0, |
| 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 | "context": { |
| 46 | "date_input_001": { |
| 47 | "@type": "date", |
| 48 | "@value": "1970-01-01" |
| 49 | } |
| 50 | }, |
| 51 | "epsilon": 1e-08 |
| 52 | }, |
| 53 | { |
| 54 | "id": "0095-feel-day-of-year-function:date_006:date_006", |
| 55 | "expression": "day of year(date: @\"2019-09-17\")", |
| 56 | "expected": 260.0, |
| 57 | "expected_type": "number", |
| 58 | "comparison": "f64_epsilon", |
| 59 | "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.", |
| 60 | "epsilon": 1e-08 |
| 61 | }, |
| 62 | { |
| 63 | "id": "0095-feel-day-of-year-function:datetime_001:datetime_001", |
| 64 | "expression": "day of year(@\"1970-01-01T10:10:10\")", |
| 65 | "expected": 1.0, |
| 66 | "expected_type": "number", |
| 67 | "comparison": "f64_epsilon", |
| 68 | "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.", |
| 69 | "epsilon": 1e-08 |
| 70 | }, |
| 71 | { |
| 72 | "id": "0095-feel-day-of-year-function:datetime_002:datetime_002", |
| 73 | "expression": "day of year(@\"2019-12-31T10:10:10\")", |
| 74 | "expected": 365.0, |
| 75 | "expected_type": "number", |
| 76 | "comparison": "f64_epsilon", |
| 77 | "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.", |
| 78 | "epsilon": 1e-08 |
| 79 | }, |
| 80 | { |
| 81 | "id": "0095-feel-day-of-year-function:datetime_003:datetime_003", |
| 82 | "expression": "day of year(@\"2020-12-31T10:10:10\")", |
| 83 | "expected": 366.0, |
| 84 | "expected_type": "number", |
| 85 | "comparison": "f64_epsilon", |
| 86 | "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.", |
| 87 | "epsilon": 1e-08 |
| 88 | }, |
| 89 | { |
| 90 | "id": "0095-feel-day-of-year-function:datetime_004:datetime_004", |
| 91 | "expression": "day of year(date_input_001)", |
| 92 | "expected": 1.0, |
| 93 | "expected_type": "number", |
| 94 | "comparison": "f64_epsilon", |
| 95 | "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.", |
| 96 | "context": { |
| 97 | "date_input_001": { |
| 98 | "@type": "date and time", |
| 99 | "@value": "1970-01-01T10:10:10" |
| 100 | } |
| 101 | }, |
| 102 | "epsilon": 1e-08 |
| 103 | }, |
| 104 | { |
| 105 | "id": "0095-feel-day-of-year-function:datetime_005:datetime_005", |
| 106 | "expression": "day of year(date: @\"2019-09-17T10:10:10\")", |
| 107 | "expected": 260.0, |
| 108 | "expected_type": "number", |
| 109 | "comparison": "f64_epsilon", |
| 110 | "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.", |
| 111 | "epsilon": 1e-08 |
| 112 | }, |
| 113 | { |
| 114 | "id": "0095-feel-day-of-year-function:null_001:null_001", |
| 115 | "expression": "day of year(null)", |
| 116 | "expected": null, |
| 117 | "expected_type": "null", |
| 118 | "comparison": "exact", |
| 119 | "deviation": null |
| 120 | }, |
| 121 | { |
| 122 | "id": "0095-feel-day-of-year-function:null_002:null_002", |
| 123 | "expression": "day of year()", |
| 124 | "expected": null, |
| 125 | "expected_type": "null", |
| 126 | "comparison": "exact", |
| 127 | "deviation": null |
| 128 | }, |
| 129 | { |
| 130 | "id": "0095-feel-day-of-year-function:null_003:null_003", |
| 131 | "expression": "day of year(\"foo\")", |
| 132 | "expected": null, |
| 133 | "expected_type": "null", |
| 134 | "comparison": "exact", |
| 135 | "deviation": null |
| 136 | }, |
| 137 | { |
| 138 | "id": "0095-feel-day-of-year-function:null_004:null_004", |
| 139 | "expression": "day of year(date: null)", |
| 140 | "expected": null, |
| 141 | "expected_type": "null", |
| 142 | "comparison": "exact", |
| 143 | "deviation": null |
| 144 | }, |
| 145 | { |
| 146 | "id": "0095-feel-day-of-year-function:null_005:null_005", |
| 147 | "expression": "day of year(date: \"foo\")", |
| 148 | "expected": null, |
| 149 | "expected_type": "null", |
| 150 | "comparison": "exact", |
| 151 | "deviation": null |
| 152 | }, |
| 153 | { |
| 154 | "id": "0095-feel-day-of-year-function:null_006:null_006", |
| 155 | "expression": "day of year(value: @\"1970-01-01\")", |
| 156 | "expected": null, |
| 157 | "expected_type": "null", |
| 158 | "comparison": "exact", |
| 159 | "deviation": null |
| 160 | }, |
| 161 | { |
| 162 | "id": "0095-feel-day-of-year-function:null_007:null_007", |
| 163 | "expression": "day of year(date_input_001)", |
| 164 | "expected": null, |
| 165 | "expected_type": "null", |
| 166 | "comparison": "exact", |
| 167 | "deviation": null, |
| 168 | "context": { |
| 169 | "date_input_001": "foo" |
| 170 | } |
| 171 | }, |
| 172 | { |
| 173 | "id": "0095-feel-day-of-year-function:null_008:null_008", |
| 174 | "expression": "day of year(@\"1970-01-01\", @\"1970-01-01\")", |
| 175 | "expected": null, |
| 176 | "expected_type": "null", |
| 177 | "comparison": "exact", |
| 178 | "deviation": null |
| 179 | } |
| 180 | ] |