Public repository: timo / feel

Reader

An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.

1
[
2
  {
3
    "id": "1120-feel-duration-function:001_f2c6cd6866:feel-duration-function_ErrorCase_001_f2c6cd6866",
4
    "expression": "duration(null)",
5
    "expected": null,
6
    "expected_type": "null",
7
    "comparison": "exact",
8
    "deviation": null
9
  },
10
  {
11
    "id": "1120-feel-duration-function:002_ddca5756ca:feel-duration-function_ErrorCase_002_ddca5756ca",
12
    "expression": "duration()",
13
    "expected": null,
14
    "expected_type": "null",
15
    "comparison": "exact",
16
    "deviation": null
17
  },
18
  {
19
    "id": "1120-feel-duration-function:003_951e1d1c31:feel-duration-function_003_951e1d1c31",
20
    "expression": "duration(\"P1D\")",
21
    "expected": "P1D",
22
    "expected_type": "duration",
23
    "comparison": "exact",
24
    "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."
25
  },
26
  {
27
    "id": "1120-feel-duration-function:004_6b31e7cde7:feel-duration-function_004_6b31e7cde7",
28
    "expression": "duration(\"PT2H\")",
29
    "expected": "PT2H",
30
    "expected_type": "duration",
31
    "comparison": "exact",
32
    "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."
33
  },
34
  {
35
    "id": "1120-feel-duration-function:005_202d863d07:feel-duration-function_005_202d863d07",
36
    "expression": "duration(\"PT3M\")",
37
    "expected": "PT3M",
38
    "expected_type": "duration",
39
    "comparison": "exact",
40
    "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."
41
  },
42
  {
43
    "id": "1120-feel-duration-function:006_a885f926d9:feel-duration-function_006_a885f926d9",
44
    "expression": "duration(\"PT4S\")",
45
    "expected": "PT4S",
46
    "expected_type": "duration",
47
    "comparison": "exact",
48
    "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."
49
  },
50
  {
51
    "id": "1120-feel-duration-function:007_2f0ad399f3:feel-duration-function_007_2f0ad399f3",
52
    "expression": "duration(\"PT0.999S\")",
53
    "expected": "PT0.999S",
54
    "expected_type": "duration",
55
    "comparison": "exact",
56
    "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."
57
  },
58
  {
59
    "id": "1120-feel-duration-function:008_747f56743d:feel-duration-function_008_747f56743d",
60
    "expression": "duration(\"P1DT2H3M4.123456789S\")",
61
    "expected": "P1DT2H3M4.123456789S",
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": "1120-feel-duration-function:009_cef3c1ed26:feel-duration-function_009_cef3c1ed26",
68
    "expression": "duration(\"PT0S\")",
69
    "expected": "PT0S",
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": "1120-feel-duration-function:010_5b452a4975:feel-duration-function_010_5b452a4975",
76
    "expression": "duration(\"PT0.000S\")",
77
    "expected": "PT0S",
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": "1120-feel-duration-function:012_2affe6d169:feel-duration-function_012_2affe6d169",
84
    "expression": "duration(\"PT0M\")",
85
    "expected": "PT0S",
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": "1120-feel-duration-function:013_0e8e26513c:feel-duration-function_013_0e8e26513c",
92
    "expression": "duration(\"PT0H\")",
93
    "expected": "PT0S",
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": "1120-feel-duration-function:014_598ba6fabd:feel-duration-function_014_598ba6fabd",
100
    "expression": "duration(\"P0D\")",
101
    "expected": "PT0S",
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": "1120-feel-duration-function:015_ce2cb09830:feel-duration-function_015_ce2cb09830",
108
    "expression": "duration(\"-PT1H2M\")",
109
    "expected": "-PT1H2M",
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": "1120-feel-duration-function:016_af3e37fdbd:feel-duration-function_016_af3e37fdbd",
116
    "expression": "duration(\"PT1000M\")",
117
    "expected": "PT16H40M",
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": "1120-feel-duration-function:017_4f4549fda4:feel-duration-function_017_4f4549fda4",
124
    "expression": "duration(\"PT1000M0.999999999S\")",
125
    "expected": "PT16H40M0.999999999S",
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": "1120-feel-duration-function:018_f5ec776811:feel-duration-function_018_f5ec776811",
132
    "expression": "duration(\"PT555M\")",
133
    "expected": "PT9H15M",
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": "1120-feel-duration-function:019_2e6885755a:feel-duration-function_019_2e6885755a",
140
    "expression": "duration(\"PT61M\")",
141
    "expected": "PT1H1M",
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": "1120-feel-duration-function:020_af58b3766e:feel-duration-function_020_af58b3766e",
148
    "expression": "duration(\"PT24H\")",
149
    "expected": "P1D",
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": "1120-feel-duration-function:021_e48e70ad4e:feel-duration-function_021_e48e70ad4e",
156
    "expression": "duration(\"PT240H\")",
157
    "expected": "P10D",
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": "1120-feel-duration-function:022_668f24bed7:feel-duration-function_022_668f24bed7",
164
    "expression": "duration(\"P2DT100M\")",
165
    "expected": "P2DT1H40M",
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": "1120-feel-duration-function:023_6fc32087db:feel-duration-function_023_6fc32087db",
172
    "expression": "duration(\"PT3600S\")",
173
    "expected": "PT1H",
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": "1120-feel-duration-function:024_fd7000d72f:feel-duration-function_024_fd7000d72f",
180
    "expression": "duration(\"P2DT274M\")",
181
    "expected": "P2DT4H34M",
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": "1120-feel-duration-function:025_f8ffbd8658:feel-duration-function_025_f8ffbd8658",
188
    "expression": "duration(\"P1Y2M\")",
189
    "expected": "P1Y2M",
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": "1120-feel-duration-function:026_e6c47f0cae:feel-duration-function_026_e6c47f0cae",
196
    "expression": "duration(\"P1Y\")",
197
    "expected": "P1Y",
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": "1120-feel-duration-function:027_33b7fb8704:feel-duration-function_027_33b7fb8704",
204
    "expression": "duration(\"P0Y\")",
205
    "expected": "P0M",
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": "1120-feel-duration-function:028_971b94f16d:feel-duration-function_028_971b94f16d",
212
    "expression": "duration(\"P0M\")",
213
    "expected": "P0M",
214
    "expected_type": "duration",
215
    "comparison": "exact",
216
    "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."
217
  },
218
  {
219
    "id": "1120-feel-duration-function:029_1a12a226cc:feel-duration-function_029_1a12a226cc",
220
    "expression": "duration(\"-P1Y\")",
221
    "expected": "-P1Y",
222
    "expected_type": "duration",
223
    "comparison": "exact",
224
    "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."
225
  },
226
  {
227
    "id": "1120-feel-duration-function:030_afac0f2062:feel-duration-function_030_afac0f2062",
228
    "expression": "duration(\"P26M\")",
229
    "expected": "P2Y2M",
230
    "expected_type": "duration",
231
    "comparison": "exact",
232
    "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."
233
  },
234
  {
235
    "id": "1120-feel-duration-function:031_1ddad718b9:feel-duration-function_031_1ddad718b9",
236
    "expression": "duration(\"P1Y27M\")",
237
    "expected": "P3Y3M",
238
    "expected_type": "duration",
239
    "comparison": "exact",
240
    "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."
241
  },
242
  {
243
    "id": "1120-feel-duration-function:032_72c46a9ec9:feel-duration-function_032_72c46a9ec9",
244
    "expression": "duration(\"P100M\")",
245
    "expected": "P8Y4M",
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": "1120-feel-duration-function:033_5d1540abaf:feel-duration-function_033_5d1540abaf",
252
    "expression": "duration(\"-P100M\")",
253
    "expected": "-P8Y4M",
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": "1120-feel-duration-function:038_67dc4c254c:feel-duration-function_038_67dc4c254c",
260
    "expression": "duration(from:\"P1Y\")",
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": "1120-feel-duration-function:039_4aa0b67804:feel-duration-function_039_4aa0b67804",
268
    "expression": "duration(from:\"PT24H\")",
269
    "expected": "P1D",
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": "1120-feel-duration-function:040_7d8eae461f:feel-duration-function_040_7d8eae461f",
276
    "expression": "duration(from:\"P26M\")",
277
    "expected": "P2Y2M",
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": "1120-feel-duration-function:041_264bc9d682:feel-duration-function_ErrorCase_041_264bc9d682",
284
    "expression": "duration(\"\")",
285
    "expected": null,
286
    "expected_type": "null",
287
    "comparison": "exact",
288
    "deviation": null
289
  },
290
  {
291
    "id": "1120-feel-duration-function:042_59a0000245:feel-duration-function_ErrorCase_042_59a0000245",
292
    "expression": "duration(2017)",
293
    "expected": null,
294
    "expected_type": "null",
295
    "comparison": "exact",
296
    "deviation": null
297
  },
298
  {
299
    "id": "1120-feel-duration-function:043_253815dc6c:feel-duration-function_ErrorCase_043_253815dc6c",
300
    "expression": "duration(\"2012T-12-2511:00:00Z\")",
301
    "expected": null,
302
    "expected_type": "null",
303
    "comparison": "exact",
304
    "deviation": null
305
  },
306
  {
307
    "id": "1120-feel-duration-function:044_f3b338d877:feel-duration-function_ErrorCase_044_f3b338d877",
308
    "expression": "duration([])",
309
    "expected": null,
310
    "expected_type": "null",
311
    "comparison": "exact",
312
    "deviation": null
313
  },
314
  {
315
    "id": "1120-feel-duration-function:045_2ffcc37801:feel-duration-function_ErrorCase_045_2ffcc37801",
316
    "expression": "duration(\"P\")",
317
    "expected": null,
318
    "expected_type": "null",
319
    "comparison": "exact",
320
    "deviation": null
321
  },
322
  {
323
    "id": "1120-feel-duration-function:046_eb637de5f6:feel-duration-function_ErrorCase_046_eb637de5f6",
324
    "expression": "duration(\"P0\")",
325
    "expected": null,
326
    "expected_type": "null",
327
    "comparison": "exact",
328
    "deviation": null
329
  },
330
  {
331
    "id": "1120-feel-duration-function:047_3210c46a5a:feel-duration-function_ErrorCase_047_3210c46a5a",
332
    "expression": "duration(\"1Y\")",
333
    "expected": null,
334
    "expected_type": "null",
335
    "comparison": "exact",
336
    "deviation": null
337
  },
338
  {
339
    "id": "1120-feel-duration-function:048_ab6244f767:feel-duration-function_ErrorCase_048_ab6244f767",
340
    "expression": "duration(\"1D\")",
341
    "expected": null,
342
    "expected_type": "null",
343
    "comparison": "exact",
344
    "deviation": null
345
  },
346
  {
347
    "id": "1120-feel-duration-function:049_2225b503a0:feel-duration-function_ErrorCase_049_2225b503a0",
348
    "expression": "duration(\"P1H\")",
349
    "expected": null,
350
    "expected_type": "null",
351
    "comparison": "exact",
352
    "deviation": null
353
  },
354
  {
355
    "id": "1120-feel-duration-function:050_dd2ef33bbd:feel-duration-function_ErrorCase_050_dd2ef33bbd",
356
    "expression": "duration(\"P1S\")",
357
    "expected": null,
358
    "expected_type": "null",
359
    "comparison": "exact",
360
    "deviation": null
361
  }
362
]