Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0103-feel-is-function:boolean_001:boolean_001",
4
    "expression": "is(true, true)",
5
    "expected": true,
6
    "expected_type": "boolean",
7
    "comparison": "exact",
8
    "deviation": null
9
  },
10
  {
11
    "id": "0103-feel-is-function:boolean_002:boolean_002",
12
    "expression": "is(true, false)",
13
    "expected": false,
14
    "expected_type": "boolean",
15
    "comparison": "exact",
16
    "deviation": null
17
  },
18
  {
19
    "id": "0103-feel-is-function:date_001:date_001",
20
    "expression": "is(@\"2012-12-25\", @\"2012-12-25\")",
21
    "expected": true,
22
    "expected_type": "boolean",
23
    "comparison": "exact",
24
    "deviation": null
25
  },
26
  {
27
    "id": "0103-feel-is-function:date_002:date_002",
28
    "expression": "is(@\"2011-12-25\", @\"2012-12-25\")",
29
    "expected": false,
30
    "expected_type": "boolean",
31
    "comparison": "exact",
32
    "deviation": null
33
  },
34
  {
35
    "id": "0103-feel-is-function:date_003:date_003",
36
    "expression": "is(@\"2012-12-25\", @\"2012-11-25\")",
37
    "expected": false,
38
    "expected_type": "boolean",
39
    "comparison": "exact",
40
    "deviation": null
41
  },
42
  {
43
    "id": "0103-feel-is-function:date_004:date_004",
44
    "expression": "is(@\"2012-12-25\", @\"2012-12-26\")",
45
    "expected": false,
46
    "expected_type": "boolean",
47
    "comparison": "exact",
48
    "deviation": null
49
  },
50
  {
51
    "id": "0103-feel-is-function:date_005:date_005",
52
    "expression": "is(@\"2012-12-25\", @\"2012-12-25T00:00:00Z\")",
53
    "expected": false,
54
    "expected_type": "boolean",
55
    "comparison": "exact",
56
    "deviation": null
57
  },
58
  {
59
    "id": "0103-feel-is-function:datetime_001:datetime_001",
60
    "expression": "is(@\"2012-12-25T10:10:10\", @\"2012-12-25T10:10:10\")",
61
    "expected": true,
62
    "expected_type": "boolean",
63
    "comparison": "exact",
64
    "deviation": null
65
  },
66
  {
67
    "id": "0103-feel-is-function:datetime_002:datetime_002",
68
    "expression": "is(@\"2012-12-25T10:10:10+11:00\", @\"2012-12-25T10:10:10+11:00\")",
69
    "expected": true,
70
    "expected_type": "boolean",
71
    "comparison": "exact",
72
    "deviation": null
73
  },
74
  {
75
    "id": "0103-feel-is-function:datetime_003:datetime_003",
76
    "expression": "is(@\"2012-12-25T10:10:10@Australia/Melbourne\", @\"2012-12-25T10:10:10@Australia/Melbourne\")",
77
    "expected": true,
78
    "expected_type": "boolean",
79
    "comparison": "exact",
80
    "deviation": null
81
  },
82
  {
83
    "id": "0103-feel-is-function:datetime_004:datetime_004",
84
    "expression": "is(@\"2002-04-02T12:00:00-01:00\", @\"2002-04-02T17:00:00+04:00\")",
85
    "expected": false,
86
    "expected_type": "boolean",
87
    "comparison": "exact",
88
    "deviation": null
89
  },
90
  {
91
    "id": "0103-feel-is-function:datetime_005:datetime_005",
92
    "expression": "is(@\"2002-04-02T12:00:00-05:00\", @\"2002-04-02T23:00:00+06:00\")",
93
    "expected": false,
94
    "expected_type": "boolean",
95
    "comparison": "exact",
96
    "deviation": null
97
  },
98
  {
99
    "id": "0103-feel-is-function:datetime_006:datetime_006",
100
    "expression": "is(@\"2002-04-02T23:00:00-04:00\", @\"2002-04-03T02:00:00-01:00\")",
101
    "expected": false,
102
    "expected_type": "boolean",
103
    "comparison": "exact",
104
    "deviation": null
105
  },
106
  {
107
    "id": "0103-feel-is-function:datetime_007:datetime_007",
108
    "expression": "is(@\"2002-04-02T23:00:00\", @\"2001-04-02T23:00:00\")",
109
    "expected": false,
110
    "expected_type": "boolean",
111
    "comparison": "exact",
112
    "deviation": null
113
  },
114
  {
115
    "id": "0103-feel-is-function:datetime_008:datetime_008",
116
    "expression": "is(@\"2002-04-02T23:00:00\", @\"2002-05-02T23:00:00\")",
117
    "expected": false,
118
    "expected_type": "boolean",
119
    "comparison": "exact",
120
    "deviation": null
121
  },
122
  {
123
    "id": "0103-feel-is-function:datetime_009:datetime_009",
124
    "expression": "is(@\"2002-04-02T23:00:00\", @\"2002-04-03T23:00:00\")",
125
    "expected": false,
126
    "expected_type": "boolean",
127
    "comparison": "exact",
128
    "deviation": null
129
  },
130
  {
131
    "id": "0103-feel-is-function:datetime_010:datetime_010",
132
    "expression": "is(@\"2002-04-02T23:00:00\", @\"2002-04-02T22:00:00\")",
133
    "expected": false,
134
    "expected_type": "boolean",
135
    "comparison": "exact",
136
    "deviation": null
137
  },
138
  {
139
    "id": "0103-feel-is-function:datetime_011:datetime_011",
140
    "expression": "is(@\"2002-04-02T23:00:00\", @\"2002-04-02T23:01:00\")",
141
    "expected": false,
142
    "expected_type": "boolean",
143
    "comparison": "exact",
144
    "deviation": null
145
  },
146
  {
147
    "id": "0103-feel-is-function:datetime_012:datetime_012",
148
    "expression": "is(@\"2002-04-02T23:00:00\", @\"2002-04-02T23:00:01\")",
149
    "expected": false,
150
    "expected_type": "boolean",
151
    "comparison": "exact",
152
    "deviation": null
153
  },
154
  {
155
    "id": "0103-feel-is-function:datetime_013:datetime_013",
156
    "expression": "is(@\"2002-04-02T23:00:00+10:00\", @\"2002-04-02T23:00:00+11:00\")",
157
    "expected": false,
158
    "expected_type": "boolean",
159
    "comparison": "exact",
160
    "deviation": null
161
  },
162
  {
163
    "id": "0103-feel-is-function:datetime_014:datetime_014",
164
    "expression": "is(@\"2002-04-02T23:00:00@Australia/Melbourne\", @\"2002-04-02T23:00:00@Australia/Sydney\")",
165
    "expected": false,
166
    "expected_type": "boolean",
167
    "comparison": "exact",
168
    "deviation": null
169
  },
170
  {
171
    "id": "0103-feel-is-function:datetime_015:datetime_015",
172
    "expression": "is(@\"23:00:50Z\", @\"23:00:50+00:00\")",
173
    "expected": true,
174
    "expected_type": "boolean",
175
    "comparison": "exact",
176
    "deviation": null
177
  },
178
  {
179
    "id": "0103-feel-is-function:datetime_016:datetime_016",
180
    "expression": "is(@\"2021-04-02T23:00:00@Australia/Melbourne\", @\"2021-04-02T23:00:00+11:00\")",
181
    "expected": false,
182
    "expected_type": "boolean",
183
    "comparison": "exact",
184
    "deviation": null
185
  },
186
  {
187
    "id": "0103-feel-is-function:datetime_017:datetime_017",
188
    "expression": "is(@\"2021-10-02T23:00:00@Australia/Melbourne\", @\"2021-10-02T23:00:00+10:00\")",
189
    "expected": false,
190
    "expected_type": "boolean",
191
    "comparison": "exact",
192
    "deviation": null
193
  },
194
  {
195
    "id": "0103-feel-is-function:dt_duration_001:dt_duration_001",
196
    "expression": "is(@\"P1D\", @\"P1D\")",
197
    "expected": true,
198
    "expected_type": "boolean",
199
    "comparison": "exact",
200
    "deviation": null
201
  },
202
  {
203
    "id": "0103-feel-is-function:dt_duration_002:dt_duration_002",
204
    "expression": "is(@\"P1D\", @\"PT24H\")",
205
    "expected": true,
206
    "expected_type": "boolean",
207
    "comparison": "exact",
208
    "deviation": null
209
  },
210
  {
211
    "id": "0103-feel-is-function:named_params_001:named_params_001",
212
    "expression": "is(value1: @\"2021-02-13\" , value2: @\"2021-02-13\")",
213
    "expected": true,
214
    "expected_type": "boolean",
215
    "comparison": "exact",
216
    "deviation": null
217
  },
218
  {
219
    "id": "0103-feel-is-function:named_params_002:named_params_002",
220
    "expression": "is(value1: @\"2021-02-13\")",
221
    "expected": false,
222
    "expected_type": "boolean",
223
    "comparison": "exact",
224
    "deviation": null
225
  },
226
  {
227
    "id": "0103-feel-is-function:named_params_003:named_params_003",
228
    "expression": "is(value2: @\"2021-02-13\")",
229
    "expected": false,
230
    "expected_type": "boolean",
231
    "comparison": "exact",
232
    "deviation": null
233
  },
234
  {
235
    "id": "0103-feel-is-function:named_params_004:named_params_004",
236
    "expression": "is(value1: @\"2021-02-13\" , value2: @\"2021-02-13\", value3: @\"2020-01-01\")",
237
    "expected": null,
238
    "expected_type": "null",
239
    "comparison": "exact",
240
    "deviation": null
241
  },
242
  {
243
    "id": "0103-feel-is-function:number_001:number_001",
244
    "expression": "is(1, 1)",
245
    "expected": true,
246
    "expected_type": "boolean",
247
    "comparison": "exact",
248
    "deviation": null
249
  },
250
  {
251
    "id": "0103-feel-is-function:number_002:number_002",
252
    "expression": "is(1, 2)",
253
    "expected": false,
254
    "expected_type": "boolean",
255
    "comparison": "exact",
256
    "deviation": null
257
  },
258
  {
259
    "id": "0103-feel-is-function:string_001:string_001",
260
    "expression": "is(\"foo\", \"foo\")",
261
    "expected": true,
262
    "expected_type": "boolean",
263
    "comparison": "exact",
264
    "deviation": null
265
  },
266
  {
267
    "id": "0103-feel-is-function:string_002:string_002",
268
    "expression": "is(\"foo\", \"bar\")",
269
    "expected": false,
270
    "expected_type": "boolean",
271
    "comparison": "exact",
272
    "deviation": null
273
  },
274
  {
275
    "id": "0103-feel-is-function:time_001:time_001",
276
    "expression": "is(@\"23:00:50\", @\"23:00:50\")",
277
    "expected": true,
278
    "expected_type": "boolean",
279
    "comparison": "exact",
280
    "deviation": null
281
  },
282
  {
283
    "id": "0103-feel-is-function:time_002:time_002",
284
    "expression": "is(@\"23:00:50+11:00\", @\"23:00:50+11:00\")",
285
    "expected": true,
286
    "expected_type": "boolean",
287
    "comparison": "exact",
288
    "deviation": null
289
  },
290
  {
291
    "id": "0103-feel-is-function:time_003:time_003",
292
    "expression": "is(@\"23:00:50@Australia/Melbourne\", @\"23:00:50@Australia/Melbourne\")",
293
    "expected": true,
294
    "expected_type": "boolean",
295
    "comparison": "exact",
296
    "deviation": null
297
  },
298
  {
299
    "id": "0103-feel-is-function:time_004:time_004",
300
    "expression": "is(@\"23:00:50Z\", @\"23:00:50+00:00\")",
301
    "expected": true,
302
    "expected_type": "boolean",
303
    "comparison": "exact",
304
    "deviation": null
305
  },
306
  {
307
    "id": "0103-feel-is-function:time_005:time_005",
308
    "expression": "is(@\"23:00:50\", @\"23:00:50Z\")",
309
    "expected": false,
310
    "expected_type": "boolean",
311
    "comparison": "exact",
312
    "deviation": null
313
  },
314
  {
315
    "id": "0103-feel-is-function:time_006:time_006",
316
    "expression": "is(@\"23:00:50@Australia/Melbourne\", @\"23:00:50+10:00\")",
317
    "expected": false,
318
    "expected_type": "boolean",
319
    "comparison": "exact",
320
    "deviation": null
321
  },
322
  {
323
    "id": "0103-feel-is-function:time_008:time_008",
324
    "expression": "is(@\"22:00:50\", @\"23:00:50\")",
325
    "expected": false,
326
    "expected_type": "boolean",
327
    "comparison": "exact",
328
    "deviation": null
329
  },
330
  {
331
    "id": "0103-feel-is-function:time_009:time_009",
332
    "expression": "is(@\"23:01:50\", @\"23:00:50\")",
333
    "expected": false,
334
    "expected_type": "boolean",
335
    "comparison": "exact",
336
    "deviation": null
337
  },
338
  {
339
    "id": "0103-feel-is-function:time_010:time_010",
340
    "expression": "is(@\"23:00:51\", @\"23:00:50\")",
341
    "expected": false,
342
    "expected_type": "boolean",
343
    "comparison": "exact",
344
    "deviation": null
345
  },
346
  {
347
    "id": "0103-feel-is-function:time_011:time_011",
348
    "expression": "is(@\"23:00:50+10:00\", @\"23:00:50+11:00\")",
349
    "expected": false,
350
    "expected_type": "boolean",
351
    "comparison": "exact",
352
    "deviation": null
353
  },
354
  {
355
    "id": "0103-feel-is-function:time_012:time_012",
356
    "expression": "is(@\"23:00:50@Australia/Melbourne\", @\"23:00:50@Australia/Sydney\")",
357
    "expected": false,
358
    "expected_type": "boolean",
359
    "comparison": "exact",
360
    "deviation": null
361
  },
362
  {
363
    "id": "0103-feel-is-function:time_013:time_013",
364
    "expression": "is(@\"20:00:50+00:00\", @\"21:00:50+01:00\")",
365
    "expected": false,
366
    "expected_type": "boolean",
367
    "comparison": "exact",
368
    "deviation": null
369
  },
370
  {
371
    "id": "0103-feel-is-function:ym_duration_001:ym_duration_001",
372
    "expression": "is(@\"P1Y\", @\"P1Y\")",
373
    "expected": true,
374
    "expected_type": "boolean",
375
    "comparison": "exact",
376
    "deviation": null
377
  },
378
  {
379
    "id": "0103-feel-is-function:ym_duration_002:ym_duration_002",
380
    "expression": "is(@\"P1Y\", @\"P12M\")",
381
    "expected": true,
382
    "expected_type": "boolean",
383
    "comparison": "exact",
384
    "deviation": null
385
  },
386
  {
387
    "id": "0103-feel-is-function:zero_duration_001:zero_duration_001",
388
    "expression": "is(@\"P0Y\", @\"P0D\")",
389
    "expected": false,
390
    "expected_type": "boolean",
391
    "comparison": "exact",
392
    "deviation": null
393
  }
394
]