Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0071-feel-between:date_001:date_001",
4
    "expression": "date(\"2018-12-01\") between date(\"2018-12-02\") and date(\"2018-12-04\")",
5
    "expected": false,
6
    "expected_type": "boolean",
7
    "comparison": "exact",
8
    "deviation": null
9
  },
10
  {
11
    "id": "0071-feel-between:date_002:date_002",
12
    "expression": "date(\"2018-12-02\") between date(\"2018-12-02\") and date(\"2018-12-04\")",
13
    "expected": true,
14
    "expected_type": "boolean",
15
    "comparison": "exact",
16
    "deviation": null
17
  },
18
  {
19
    "id": "0071-feel-between:date_003:date_003",
20
    "expression": "date(\"2018-12-03\") between date(\"2018-12-02\") and date(\"2018-12-04\")",
21
    "expected": true,
22
    "expected_type": "boolean",
23
    "comparison": "exact",
24
    "deviation": null
25
  },
26
  {
27
    "id": "0071-feel-between:date_004:date_004",
28
    "expression": "date(\"2018-12-04\") between date(\"2018-12-02\") and date(\"2018-12-04\")",
29
    "expected": true,
30
    "expected_type": "boolean",
31
    "comparison": "exact",
32
    "deviation": null
33
  },
34
  {
35
    "id": "0071-feel-between:date_005:date_005",
36
    "expression": "date(\"2018-12-05\") between date(\"2018-12-02\") and date(\"2018-12-04\")",
37
    "expected": false,
38
    "expected_type": "boolean",
39
    "comparison": "exact",
40
    "deviation": null
41
  },
42
  {
43
    "id": "0071-feel-between:datetime_001:datetime_001",
44
    "expression": "date and time(\"2018-12-01T10:30:00\") between date and time(\"2018-12-02T10:30:00\") and date and time(\"2018-12-04T10:30:00\")",
45
    "expected": false,
46
    "expected_type": "boolean",
47
    "comparison": "exact",
48
    "deviation": null
49
  },
50
  {
51
    "id": "0071-feel-between:datetime_002:datetime_002",
52
    "expression": "date and time(\"2018-12-02T10:30:00\") between date and time(\"2018-12-02T10:30:00\") and date and time(\"2018-12-04T10:30:00\")",
53
    "expected": true,
54
    "expected_type": "boolean",
55
    "comparison": "exact",
56
    "deviation": null
57
  },
58
  {
59
    "id": "0071-feel-between:datetime_003:datetime_003",
60
    "expression": "date and time(\"2018-12-03T10:30:00\") between date and time(\"2018-12-02T10:30:00\") and date and time(\"2018-12-04T10:30:00\")",
61
    "expected": true,
62
    "expected_type": "boolean",
63
    "comparison": "exact",
64
    "deviation": null
65
  },
66
  {
67
    "id": "0071-feel-between:datetime_004:datetime_004",
68
    "expression": "date and time(\"2018-12-04T10:30:00\") between date and time(\"2018-12-02T10:30:00\") and date and time(\"2018-12-04T10:30:00\")",
69
    "expected": true,
70
    "expected_type": "boolean",
71
    "comparison": "exact",
72
    "deviation": null
73
  },
74
  {
75
    "id": "0071-feel-between:datetime_005:datetime_005",
76
    "expression": "date and time(\"2018-12-05T10:30:00\") between date and time(\"2018-12-02T10:30:00\") and date and time(\"2018-12-04T10:30:00\")",
77
    "expected": false,
78
    "expected_type": "boolean",
79
    "comparison": "exact",
80
    "deviation": null
81
  },
82
  {
83
    "id": "0071-feel-between:dt_duration_001:dt_duration_001",
84
    "expression": "duration(\"P1D\") between duration(\"P2D\") and duration(\"P4D\")",
85
    "expected": false,
86
    "expected_type": "boolean",
87
    "comparison": "exact",
88
    "deviation": null
89
  },
90
  {
91
    "id": "0071-feel-between:dt_duration_002:dt_duration_002",
92
    "expression": "duration(\"P2D\") between duration(\"P2D\") and duration(\"P4D\")",
93
    "expected": true,
94
    "expected_type": "boolean",
95
    "comparison": "exact",
96
    "deviation": null
97
  },
98
  {
99
    "id": "0071-feel-between:dt_duration_003:dt_duration_003",
100
    "expression": "duration(\"P3D\") between duration(\"P2D\") and duration(\"P4D\")",
101
    "expected": true,
102
    "expected_type": "boolean",
103
    "comparison": "exact",
104
    "deviation": null
105
  },
106
  {
107
    "id": "0071-feel-between:dt_duration_004:dt_duration_004",
108
    "expression": "duration(\"P4D\") between duration(\"P2D\") and duration(\"P4D\")",
109
    "expected": true,
110
    "expected_type": "boolean",
111
    "comparison": "exact",
112
    "deviation": null
113
  },
114
  {
115
    "id": "0071-feel-between:dt_duration_005:dt_duration_005",
116
    "expression": "duration(\"P5D\") between duration(\"P2D\") and duration(\"P4D\")",
117
    "expected": false,
118
    "expected_type": "boolean",
119
    "comparison": "exact",
120
    "deviation": null
121
  },
122
  {
123
    "id": "0071-feel-between:null_001:null_001",
124
    "expression": "null between 1 and 10",
125
    "expected": null,
126
    "expected_type": "null",
127
    "comparison": "exact",
128
    "deviation": null
129
  },
130
  {
131
    "id": "0071-feel-between:null_002:null_002",
132
    "expression": "2 between null and 10",
133
    "expected": null,
134
    "expected_type": "null",
135
    "comparison": "exact",
136
    "deviation": null
137
  },
138
  {
139
    "id": "0071-feel-between:null_003:null_003",
140
    "expression": "2 between 1 and null",
141
    "expected": null,
142
    "expected_type": "null",
143
    "comparison": "exact",
144
    "deviation": null
145
  },
146
  {
147
    "id": "0071-feel-between:number_001:number_001",
148
    "expression": "0 between 1 and 10",
149
    "expected": false,
150
    "expected_type": "boolean",
151
    "comparison": "exact",
152
    "deviation": null
153
  },
154
  {
155
    "id": "0071-feel-between:number_002:number_002",
156
    "expression": "1 between 1 and 10",
157
    "expected": true,
158
    "expected_type": "boolean",
159
    "comparison": "exact",
160
    "deviation": null
161
  },
162
  {
163
    "id": "0071-feel-between:number_003:number_003",
164
    "expression": "5 between 1 and 10",
165
    "expected": true,
166
    "expected_type": "boolean",
167
    "comparison": "exact",
168
    "deviation": null
169
  },
170
  {
171
    "id": "0071-feel-between:number_004:number_004",
172
    "expression": "10 between 1 and 10",
173
    "expected": true,
174
    "expected_type": "boolean",
175
    "comparison": "exact",
176
    "deviation": null
177
  },
178
  {
179
    "id": "0071-feel-between:number_005:number_005",
180
    "expression": "11 between 1 and 10",
181
    "expected": false,
182
    "expected_type": "boolean",
183
    "comparison": "exact",
184
    "deviation": null
185
  },
186
  {
187
    "id": "0071-feel-between:string_001:string_001",
188
    "expression": "\"a\" between \"b\" and \"d\"",
189
    "expected": false,
190
    "expected_type": "boolean",
191
    "comparison": "exact",
192
    "deviation": null
193
  },
194
  {
195
    "id": "0071-feel-between:string_002:string_002",
196
    "expression": "\"b\" between \"b\" and \"d\"",
197
    "expected": true,
198
    "expected_type": "boolean",
199
    "comparison": "exact",
200
    "deviation": null
201
  },
202
  {
203
    "id": "0071-feel-between:string_003:string_003",
204
    "expression": "\"c\" between \"b\" and \"d\"",
205
    "expected": true,
206
    "expected_type": "boolean",
207
    "comparison": "exact",
208
    "deviation": null
209
  },
210
  {
211
    "id": "0071-feel-between:string_004:string_004",
212
    "expression": "\"d\" between \"b\" and \"d\"",
213
    "expected": true,
214
    "expected_type": "boolean",
215
    "comparison": "exact",
216
    "deviation": null
217
  },
218
  {
219
    "id": "0071-feel-between:string_005:string_005",
220
    "expression": "\"e\" between \"b\" and \"d\"",
221
    "expected": false,
222
    "expected_type": "boolean",
223
    "comparison": "exact",
224
    "deviation": null
225
  },
226
  {
227
    "id": "0071-feel-between:time_001:time_001",
228
    "expression": "time(\"10:31:00\") between time(\"10:32:00\") and time(\"10:34:00\")",
229
    "expected": false,
230
    "expected_type": "boolean",
231
    "comparison": "exact",
232
    "deviation": null
233
  },
234
  {
235
    "id": "0071-feel-between:time_002:time_002",
236
    "expression": "time(\"10:32:00\") between time(\"10:32:00\") and time(\"10:34:00\")",
237
    "expected": true,
238
    "expected_type": "boolean",
239
    "comparison": "exact",
240
    "deviation": null
241
  },
242
  {
243
    "id": "0071-feel-between:time_003:time_003",
244
    "expression": "time(\"10:33:00\") between time(\"10:32:00\") and time(\"10:34:00\")",
245
    "expected": true,
246
    "expected_type": "boolean",
247
    "comparison": "exact",
248
    "deviation": null
249
  },
250
  {
251
    "id": "0071-feel-between:time_004:time_004",
252
    "expression": "time(\"10:34:00\") between time(\"10:32:00\") and time(\"10:34:00\")",
253
    "expected": true,
254
    "expected_type": "boolean",
255
    "comparison": "exact",
256
    "deviation": null
257
  },
258
  {
259
    "id": "0071-feel-between:time_005:time_005",
260
    "expression": "time(\"10:35:00\") between time(\"10:32:00\") and time(\"10:34:00\")",
261
    "expected": false,
262
    "expected_type": "boolean",
263
    "comparison": "exact",
264
    "deviation": null
265
  },
266
  {
267
    "id": "0071-feel-between:ym_duration_001:ym_duration_001",
268
    "expression": "duration(\"P1Y\") between duration(\"P2Y\") and duration(\"P4Y\")",
269
    "expected": false,
270
    "expected_type": "boolean",
271
    "comparison": "exact",
272
    "deviation": null
273
  },
274
  {
275
    "id": "0071-feel-between:ym_duration_002:ym_duration_002",
276
    "expression": "duration(\"P2Y\") between duration(\"P2Y\") and duration(\"P4Y\")",
277
    "expected": true,
278
    "expected_type": "boolean",
279
    "comparison": "exact",
280
    "deviation": null
281
  },
282
  {
283
    "id": "0071-feel-between:ym_duration_003:ym_duration_003",
284
    "expression": "duration(\"P3Y\") between duration(\"P2Y\") and duration(\"P4Y\")",
285
    "expected": true,
286
    "expected_type": "boolean",
287
    "comparison": "exact",
288
    "deviation": null
289
  },
290
  {
291
    "id": "0071-feel-between:ym_duration_004:ym_duration_004",
292
    "expression": "duration(\"P4Y\") between duration(\"P2Y\") and duration(\"P4Y\")",
293
    "expected": true,
294
    "expected_type": "boolean",
295
    "comparison": "exact",
296
    "deviation": null
297
  },
298
  {
299
    "id": "0071-feel-between:ym_duration_005:ym_duration_005",
300
    "expression": "duration(\"P5Y\") between duration(\"P2Y\") and duration(\"P4Y\")",
301
    "expected": false,
302
    "expected_type": "boolean",
303
    "comparison": "exact",
304
    "deviation": null
305
  }
306
]