| 1 | [ |
| 2 | { |
| 3 | "id": "1121-feel-years-and-months-duration-function:001_b24a0c91f2:feel-years-and-months-duration-function_ErrorCase_001_b24a0c91f2", |
| 4 | "expression": "years and months duration(null)", |
| 5 | "expected": null, |
| 6 | "expected_type": "null", |
| 7 | "comparison": "exact", |
| 8 | "deviation": null |
| 9 | }, |
| 10 | { |
| 11 | "id": "1121-feel-years-and-months-duration-function:002_4e7651ae0e:feel-years-and-months-duration-function_ErrorCase_002_4e7651ae0e", |
| 12 | "expression": "years and months duration(null,null)", |
| 13 | "expected": null, |
| 14 | "expected_type": "null", |
| 15 | "comparison": "exact", |
| 16 | "deviation": null |
| 17 | }, |
| 18 | { |
| 19 | "id": "1121-feel-years-and-months-duration-function:003_0886738d31:feel-years-and-months-duration-function_ErrorCase_003_0886738d31", |
| 20 | "expression": "years and months duration(date(\"2017-08-11\"),null)", |
| 21 | "expected": null, |
| 22 | "expected_type": "null", |
| 23 | "comparison": "exact", |
| 24 | "deviation": null |
| 25 | }, |
| 26 | { |
| 27 | "id": "1121-feel-years-and-months-duration-function:004_1bdfef922b:feel-years-and-months-duration-function_ErrorCase_004_1bdfef922b", |
| 28 | "expression": "years and months duration(date and time(\"2017-12-31T13:00:00\"),null)", |
| 29 | "expected": null, |
| 30 | "expected_type": "null", |
| 31 | "comparison": "exact", |
| 32 | "deviation": null |
| 33 | }, |
| 34 | { |
| 35 | "id": "1121-feel-years-and-months-duration-function:005_d0a077da4e:feel-years-and-months-duration-function_ErrorCase_005_d0a077da4e", |
| 36 | "expression": "years and months duration(null,date(\"2017-08-11\"))", |
| 37 | "expected": null, |
| 38 | "expected_type": "null", |
| 39 | "comparison": "exact", |
| 40 | "deviation": null |
| 41 | }, |
| 42 | { |
| 43 | "id": "1121-feel-years-and-months-duration-function:006_f20de28d3f:feel-years-and-months-duration-function_ErrorCase_006_f20de28d3f", |
| 44 | "expression": "years and months duration(null,date and time(\"2019-10-01T12:32:59\"))", |
| 45 | "expected": null, |
| 46 | "expected_type": "null", |
| 47 | "comparison": "exact", |
| 48 | "deviation": null |
| 49 | }, |
| 50 | { |
| 51 | "id": "1121-feel-years-and-months-duration-function:007_0921c3d61a:feel-years-and-months-duration-function_ErrorCase_007_0921c3d61a", |
| 52 | "expression": "years and months duration()", |
| 53 | "expected": null, |
| 54 | "expected_type": "null", |
| 55 | "comparison": "exact", |
| 56 | "deviation": null |
| 57 | }, |
| 58 | { |
| 59 | "id": "1121-feel-years-and-months-duration-function:008_015d35b442:feel-years-and-months-duration-function_008_015d35b442", |
| 60 | "expression": "years and months duration(date(\"2011-12-22\"),date(\"2013-08-24\"))", |
| 61 | "expected": "P1Y8M", |
| 62 | "expected_type": "duration", |
| 63 | "comparison": "exact", |
| 64 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 65 | }, |
| 66 | { |
| 67 | "id": "1121-feel-years-and-months-duration-function:009_635028a5d8:feel-years-and-months-duration-function_009_635028a5d8", |
| 68 | "expression": "years and months duration(date(\"2013-08-24\"),date(\"2011-12-22\"))", |
| 69 | "expected": "-P1Y8M", |
| 70 | "expected_type": "duration", |
| 71 | "comparison": "exact", |
| 72 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 73 | }, |
| 74 | { |
| 75 | "id": "1121-feel-years-and-months-duration-function:010_caaa2e5002:feel-years-and-months-duration-function_010_caaa2e5002", |
| 76 | "expression": "years and months duration(date(\"2015-01-21\"),date(\"2016-01-21\"))", |
| 77 | "expected": "P1Y", |
| 78 | "expected_type": "duration", |
| 79 | "comparison": "exact", |
| 80 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 81 | }, |
| 82 | { |
| 83 | "id": "1121-feel-years-and-months-duration-function:011_3fac022eb0:feel-years-and-months-duration-function_011_3fac022eb0", |
| 84 | "expression": "years and months duration(date(\"2016-01-21\"),date(\"2015-01-21\"))", |
| 85 | "expected": "-P1Y", |
| 86 | "expected_type": "duration", |
| 87 | "comparison": "exact", |
| 88 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 89 | }, |
| 90 | { |
| 91 | "id": "1121-feel-years-and-months-duration-function:012_331ef38ce0:feel-years-and-months-duration-function_012_331ef38ce0", |
| 92 | "expression": "years and months duration(date(\"2016-01-01\"),date(\"2016-01-01\"))", |
| 93 | "expected": "P0M", |
| 94 | "expected_type": "duration", |
| 95 | "comparison": "exact", |
| 96 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 97 | }, |
| 98 | { |
| 99 | "id": "1121-feel-years-and-months-duration-function:013_2f3cc46d9d:feel-years-and-months-duration-function_013_2f3cc46d9d", |
| 100 | "expression": "years and months duration(date and time(\"2017-12-31T13:00:00\"), date and time(\"2017-12-31T12:00:00\"))", |
| 101 | "expected": "P0M", |
| 102 | "expected_type": "duration", |
| 103 | "comparison": "exact", |
| 104 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 105 | }, |
| 106 | { |
| 107 | "id": "1121-feel-years-and-months-duration-function:014_1fadbba7cd:feel-years-and-months-duration-function_014_1fadbba7cd", |
| 108 | "expression": "years and months duration(date and time(\"2016-09-30T23:25:00\"), date and time(\"2017-12-28T12:12:12\"))", |
| 109 | "expected": "P1Y2M", |
| 110 | "expected_type": "duration", |
| 111 | "comparison": "exact", |
| 112 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 113 | }, |
| 114 | { |
| 115 | "id": "1121-feel-years-and-months-duration-function:015_0e496f94fc:feel-years-and-months-duration-function_015_0e496f94fc", |
| 116 | "expression": "years and months duration(date and time(\"2010-05-30T03:55:58\"), date and time(\"2017-12-15T00:59:59\"))", |
| 117 | "expected": "P7Y6M", |
| 118 | "expected_type": "duration", |
| 119 | "comparison": "exact", |
| 120 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 121 | }, |
| 122 | { |
| 123 | "id": "1121-feel-years-and-months-duration-function:016_b38662aa93:feel-years-and-months-duration-function_016_b38662aa93", |
| 124 | "expression": "years and months duration(date and time(\"2014-12-31T23:59:59\"), date and time(\"2019-10-01T12:32:59\"))", |
| 125 | "expected": "P4Y9M", |
| 126 | "expected_type": "duration", |
| 127 | "comparison": "exact", |
| 128 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 129 | }, |
| 130 | { |
| 131 | "id": "1121-feel-years-and-months-duration-function:017_86744b9a54:feel-years-and-months-duration-function_017_86744b9a54", |
| 132 | "expression": "years and months duration(date and time(\"-2016-01-30T09:05:00\"), date and time(\"-2017-02-28T02:02:02\"))", |
| 133 | "expected": "-P11M", |
| 134 | "expected_type": "duration", |
| 135 | "comparison": "exact", |
| 136 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 137 | }, |
| 138 | { |
| 139 | "id": "1121-feel-years-and-months-duration-function:018_8a9ed1d66d:feel-years-and-months-duration-function_018_8a9ed1d66d", |
| 140 | "expression": "years and months duration(date and time(\"2014-12-31T23:59:59\"), date and time(\"-2019-10-01T12:32:59\"))", |
| 141 | "expected": "-P4033Y2M", |
| 142 | "expected_type": "duration", |
| 143 | "comparison": "exact", |
| 144 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 145 | }, |
| 146 | { |
| 147 | "id": "1121-feel-years-and-months-duration-function:019_90c2084588:feel-years-and-months-duration-function_019_90c2084588", |
| 148 | "expression": "years and months duration(date and time(\"2017-09-05T10:20:00-01:00\"), date and time(\"-2019-10-01T12:32:59+02:00\"))", |
| 149 | "expected": "-P4035Y11M", |
| 150 | "expected_type": "duration", |
| 151 | "comparison": "exact", |
| 152 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 153 | }, |
| 154 | { |
| 155 | "id": "1121-feel-years-and-months-duration-function:020_8ead9a0377:feel-years-and-months-duration-function_020_8ead9a0377", |
| 156 | "expression": "years and months duration(date and time(\"2017-09-05T10:20:00+05:00\"), date and time(\"2019-10-01T12:32:59\"))", |
| 157 | "expected": "P2Y", |
| 158 | "expected_type": "duration", |
| 159 | "comparison": "exact", |
| 160 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 161 | }, |
| 162 | { |
| 163 | "id": "1121-feel-years-and-months-duration-function:021_8a7d311ae9:feel-years-and-months-duration-function_021_8a7d311ae9", |
| 164 | "expression": "years and months duration(date and time(\"2016-08-25T15:20:59+02:00\"), date and time(\"2017-08-10T10:20:00@Europe/Paris\"))", |
| 165 | "expected": "P11M", |
| 166 | "expected_type": "duration", |
| 167 | "comparison": "exact", |
| 168 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 169 | }, |
| 170 | { |
| 171 | "id": "1121-feel-years-and-months-duration-function:022_87e369773b:feel-years-and-months-duration-function_022_87e369773b", |
| 172 | "expression": "years and months duration(date and time(\"2011-12-31T10:15:30@Etc/UTC\"), date and time(\"2017-08-10T10:20:00@Europe/Paris\"))", |
| 173 | "expected": "P5Y7M", |
| 174 | "expected_type": "duration", |
| 175 | "comparison": "exact", |
| 176 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 177 | }, |
| 178 | { |
| 179 | "id": "1121-feel-years-and-months-duration-function:023_6385c7a83e:feel-years-and-months-duration-function_023_6385c7a83e", |
| 180 | "expression": "years and months duration(date and time(\"2017-09-05T10:20:00@Etc/UTC\"), date and time(\"2018-10-01T23:59:59\"))", |
| 181 | "expected": "P1Y", |
| 182 | "expected_type": "duration", |
| 183 | "comparison": "exact", |
| 184 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 185 | }, |
| 186 | { |
| 187 | "id": "1121-feel-years-and-months-duration-function:024_e96d1bd93a:feel-years-and-months-duration-function_024_e96d1bd93a", |
| 188 | "expression": "years and months duration(date and time(\"2011-08-25T15:59:59@Europe/Paris\"), date and time(\"2015-08-25T15:20:59+02:00\"))", |
| 189 | "expected": "P4Y", |
| 190 | "expected_type": "duration", |
| 191 | "comparison": "exact", |
| 192 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 193 | }, |
| 194 | { |
| 195 | "id": "1121-feel-years-and-months-duration-function:025_161f6fca54:feel-years-and-months-duration-function_025_161f6fca54", |
| 196 | "expression": "years and months duration(date and time(\"2015-12-31T23:59:59.9999999\"), date and time(\"2018-10-01T12:32:59.111111\"))", |
| 197 | "expected": "P2Y9M", |
| 198 | "expected_type": "duration", |
| 199 | "comparison": "exact", |
| 200 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 201 | }, |
| 202 | { |
| 203 | "id": "1121-feel-years-and-months-duration-function:026_fcc906b375:feel-years-and-months-duration-function_026_fcc906b375", |
| 204 | "expression": "years and months duration(date and time(\"2016-09-05T22:20:55.123456+05:00\"), date and time(\"2019-10-01T12:32:59.32415645\"))", |
| 205 | "expected": "P3Y", |
| 206 | "expected_type": "duration", |
| 207 | "comparison": "exact", |
| 208 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 209 | }, |
| 210 | { |
| 211 | "id": "1121-feel-years-and-months-duration-function:027_3374dd86c6:feel-years-and-months-duration-function_ErrorCase_027_3374dd86c6", |
| 212 | "expression": "years and months duration(date(\"\"),date(\"\"))", |
| 213 | "expected": null, |
| 214 | "expected_type": "null", |
| 215 | "comparison": "exact", |
| 216 | "deviation": null |
| 217 | }, |
| 218 | { |
| 219 | "id": "1121-feel-years-and-months-duration-function:028_77600e7b35:feel-years-and-months-duration-function_ErrorCase_028_77600e7b35", |
| 220 | "expression": "years and months duration(2017)", |
| 221 | "expected": null, |
| 222 | "expected_type": "null", |
| 223 | "comparison": "exact", |
| 224 | "deviation": null |
| 225 | }, |
| 226 | { |
| 227 | "id": "1121-feel-years-and-months-duration-function:029_15a0d0d9c1:feel-years-and-months-duration-function_ErrorCase_029_15a0d0d9c1", |
| 228 | "expression": "years and months duration(\"2012T-12-2511:00:00Z\")", |
| 229 | "expected": null, |
| 230 | "expected_type": "null", |
| 231 | "comparison": "exact", |
| 232 | "deviation": null |
| 233 | }, |
| 234 | { |
| 235 | "id": "1121-feel-years-and-months-duration-function:030_ec16878596:feel-years-and-months-duration-function_ErrorCase_030_ec16878596", |
| 236 | "expression": "years and months duration([],[])", |
| 237 | "expected": null, |
| 238 | "expected_type": "null", |
| 239 | "comparison": "exact", |
| 240 | "deviation": null |
| 241 | }, |
| 242 | { |
| 243 | "id": "1121-feel-years-and-months-duration-function:031_4fd9c09d89:feel-years-and-months-duration-function_031_4fd9c09d89", |
| 244 | "expression": "years and months duration(date(\"2013-08-24\"), date and time(\"2017-12-15T00:59:59\"))", |
| 245 | "expected": "P4Y3M", |
| 246 | "expected_type": "duration", |
| 247 | "comparison": "exact", |
| 248 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 249 | }, |
| 250 | { |
| 251 | "id": "1121-feel-years-and-months-duration-function:032_2a09ac80d0:feel-years-and-months-duration-function_032_2a09ac80d0", |
| 252 | "expression": "years and months duration(date and time(\"2017-02-28T23:59:59\"), date(\"2019-07-23\") )", |
| 253 | "expected": "P2Y4M", |
| 254 | "expected_type": "duration", |
| 255 | "comparison": "exact", |
| 256 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 257 | }, |
| 258 | { |
| 259 | "id": "1121-feel-years-and-months-duration-function:033_7333eca866:feel-years-and-months-duration-function_033_7333eca866", |
| 260 | "expression": "years and months duration(from:date and time(\"2016-12-31T00:00:01\"),to:date and time(\"2017-12-31T23:59:59\"))", |
| 261 | "expected": "P1Y", |
| 262 | "expected_type": "duration", |
| 263 | "comparison": "exact", |
| 264 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 265 | }, |
| 266 | { |
| 267 | "id": "1121-feel-years-and-months-duration-function:034_c2cc06724c:feel-years-and-months-duration-function_034_c2cc06724c", |
| 268 | "expression": "years and months duration(from:date and time(\"2014-12-31T23:59:59\"),to:date and time(\"2016-12-31T00:00:01\"))", |
| 269 | "expected": "P2Y", |
| 270 | "expected_type": "duration", |
| 271 | "comparison": "exact", |
| 272 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 273 | }, |
| 274 | { |
| 275 | "id": "1121-feel-years-and-months-duration-function:035_dc05f9555d:feel-years-and-months-duration-function_035_dc05f9555d", |
| 276 | "expression": "years and months duration(from:date(\"2011-12-22\"),to:date(\"2013-08-24\"))", |
| 277 | "expected": "P1Y8M", |
| 278 | "expected_type": "duration", |
| 279 | "comparison": "exact", |
| 280 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 281 | }, |
| 282 | { |
| 283 | "id": "1121-feel-years-and-months-duration-function:036_f8c8b02ba3:feel-years-and-months-duration-function_036_f8c8b02ba3", |
| 284 | "expression": "years and months duration(from:date(\"2016-01-21\"),to:date(\"2015-01-21\"))", |
| 285 | "expected": "-P1Y", |
| 286 | "expected_type": "duration", |
| 287 | "comparison": "exact", |
| 288 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects." |
| 289 | } |
| 290 | ] |