Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0105-feel-math:001:Decision1",
4
    "expression": "10+5",
5
    "expected": 15.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": "0105-feel-math:002:Decision2",
13
    "expression": "-10+-5",
14
    "expected": -15.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": "0105-feel-math:003:Decision3",
22
    "expression": "(-10)+(-5)",
23
    "expected": -15.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": "0105-feel-math:004:Decision4",
31
    "expression": "10-5",
32
    "expected": 5.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": "0105-feel-math:005:Decision5",
40
    "expression": "-10--5",
41
    "expected": -5.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
    "epsilon": 1e-08
46
  },
47
  {
48
    "id": "0105-feel-math:006:Decision6",
49
    "expression": "(-10)-(-5)",
50
    "expected": -5.0,
51
    "expected_type": "number",
52
    "comparison": "f64_epsilon",
53
    "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.",
54
    "epsilon": 1e-08
55
  },
56
  {
57
    "id": "0105-feel-math:007:Decision7",
58
    "expression": "(10+20)-(-5+3)",
59
    "expected": 32.0,
60
    "expected_type": "number",
61
    "comparison": "f64_epsilon",
62
    "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.",
63
    "epsilon": 1e-08
64
  },
65
  {
66
    "id": "0105-feel-math:008:Decision8",
67
    "expression": "10*5",
68
    "expected": 50.0,
69
    "expected_type": "number",
70
    "comparison": "f64_epsilon",
71
    "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.",
72
    "epsilon": 1e-08
73
  },
74
  {
75
    "id": "0105-feel-math:009:Decision9",
76
    "expression": "-10*-5",
77
    "expected": 50.0,
78
    "expected_type": "number",
79
    "comparison": "f64_epsilon",
80
    "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.",
81
    "epsilon": 1e-08
82
  },
83
  {
84
    "id": "0105-feel-math:010:Decision10",
85
    "expression": "(-10)*(-5)",
86
    "expected": 50.0,
87
    "expected_type": "number",
88
    "comparison": "f64_epsilon",
89
    "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.",
90
    "epsilon": 1e-08
91
  },
92
  {
93
    "id": "0105-feel-math:011:Decision11",
94
    "expression": "(10+5)*(-5*3)",
95
    "expected": -225.0,
96
    "expected_type": "number",
97
    "comparison": "f64_epsilon",
98
    "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.",
99
    "epsilon": 1e-08
100
  },
101
  {
102
    "id": "0105-feel-math:012:Decision12",
103
    "expression": "10/5",
104
    "expected": 2.0,
105
    "expected_type": "number",
106
    "comparison": "f64_epsilon",
107
    "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.",
108
    "epsilon": 1e-08
109
  },
110
  {
111
    "id": "0105-feel-math:013:Decision13",
112
    "expression": "-10/-5",
113
    "expected": 2.0,
114
    "expected_type": "number",
115
    "comparison": "f64_epsilon",
116
    "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.",
117
    "epsilon": 1e-08
118
  },
119
  {
120
    "id": "0105-feel-math:014:Decision14",
121
    "expression": "(-10)/(-5)",
122
    "expected": 2.0,
123
    "expected_type": "number",
124
    "comparison": "f64_epsilon",
125
    "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.",
126
    "epsilon": 1e-08
127
  },
128
  {
129
    "id": "0105-feel-math:015:Decision15",
130
    "expression": "(10+20)/(-5*3)",
131
    "expected": -2.0,
132
    "expected_type": "number",
133
    "comparison": "f64_epsilon",
134
    "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.",
135
    "epsilon": 1e-08
136
  },
137
  {
138
    "id": "0105-feel-math:016:Decision16",
139
    "expression": "(10+20)/0",
140
    "expected": null,
141
    "expected_type": "null",
142
    "comparison": "exact",
143
    "deviation": null
144
  },
145
  {
146
    "id": "0105-feel-math:017:Decision17",
147
    "expression": "10**5",
148
    "expected": 100000.0,
149
    "expected_type": "number",
150
    "comparison": "f64_epsilon",
151
    "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.",
152
    "epsilon": 1e-08
153
  },
154
  {
155
    "id": "0105-feel-math:018:Decision18",
156
    "expression": "10**-5",
157
    "expected": 1e-05,
158
    "expected_type": "number",
159
    "comparison": "f64_epsilon",
160
    "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.",
161
    "epsilon": 1e-08
162
  },
163
  {
164
    "id": "0105-feel-math:019:Decision19",
165
    "expression": "(5+2)**5",
166
    "expected": 16807.0,
167
    "expected_type": "number",
168
    "comparison": "f64_epsilon",
169
    "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.",
170
    "epsilon": 1e-08
171
  },
172
  {
173
    "id": "0105-feel-math:020:Decision20",
174
    "expression": "5+2**5",
175
    "expected": 37.0,
176
    "expected_type": "number",
177
    "comparison": "f64_epsilon",
178
    "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.",
179
    "epsilon": 1e-08
180
  },
181
  {
182
    "id": "0105-feel-math:021:Decision21",
183
    "expression": "5+2**5+3",
184
    "expected": 40.0,
185
    "expected_type": "number",
186
    "comparison": "f64_epsilon",
187
    "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.",
188
    "epsilon": 1e-08
189
  },
190
  {
191
    "id": "0105-feel-math:022:Decision22",
192
    "expression": "5+2**(5+3)",
193
    "expected": 261.0,
194
    "expected_type": "number",
195
    "comparison": "f64_epsilon",
196
    "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.",
197
    "epsilon": 1e-08
198
  },
199
  {
200
    "id": "0105-feel-math:023:Decision23",
201
    "expression": "10+null",
202
    "expected": null,
203
    "expected_type": "null",
204
    "comparison": "exact",
205
    "deviation": null
206
  },
207
  {
208
    "id": "0105-feel-math:024:Decision24",
209
    "expression": "null + 10",
210
    "expected": null,
211
    "expected_type": "null",
212
    "comparison": "exact",
213
    "deviation": null
214
  },
215
  {
216
    "id": "0105-feel-math:025:Decision25",
217
    "expression": "10 - null",
218
    "expected": null,
219
    "expected_type": "null",
220
    "comparison": "exact",
221
    "deviation": null
222
  },
223
  {
224
    "id": "0105-feel-math:026:Decision26",
225
    "expression": "null - 10",
226
    "expected": null,
227
    "expected_type": "null",
228
    "comparison": "exact",
229
    "deviation": null
230
  },
231
  {
232
    "id": "0105-feel-math:027:Decision27",
233
    "expression": "10 * null",
234
    "expected": null,
235
    "expected_type": "null",
236
    "comparison": "exact",
237
    "deviation": null
238
  },
239
  {
240
    "id": "0105-feel-math:028:Decision28",
241
    "expression": "null * 10",
242
    "expected": null,
243
    "expected_type": "null",
244
    "comparison": "exact",
245
    "deviation": null
246
  },
247
  {
248
    "id": "0105-feel-math:029:Decision29",
249
    "expression": "10 / null",
250
    "expected": null,
251
    "expected_type": "null",
252
    "comparison": "exact",
253
    "deviation": null
254
  },
255
  {
256
    "id": "0105-feel-math:030:Decision30",
257
    "expression": "null / 10",
258
    "expected": null,
259
    "expected_type": "null",
260
    "comparison": "exact",
261
    "deviation": null
262
  },
263
  {
264
    "id": "0105-feel-math:031:Decision31",
265
    "expression": "10 + 20 / -5 - 3",
266
    "expected": 3.0,
267
    "expected_type": "number",
268
    "comparison": "f64_epsilon",
269
    "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.",
270
    "epsilon": 1e-08
271
  },
272
  {
273
    "id": "0105-feel-math:032:Decision32",
274
    "expression": "10 + 20 / (-5 - 3)",
275
    "expected": 7.5,
276
    "expected_type": "number",
277
    "comparison": "f64_epsilon",
278
    "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.",
279
    "epsilon": 1e-08
280
  },
281
  {
282
    "id": "0105-feel-math:033:Decision33",
283
    "expression": "1.2*10**3",
284
    "expected": 1200.0,
285
    "expected_type": "number",
286
    "comparison": "f64_epsilon",
287
    "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.",
288
    "epsilon": 1e-08
289
  }
290
]