Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0101-feel-constants:001:Decision1",
4
    "expression": ".872",
5
    "expected": 0.872,
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
    "coerce_to": "number",
10
    "epsilon": 1e-08
11
  },
12
  {
13
    "id": "0101-feel-constants:002:Decision2",
14
    "expression": "-.872",
15
    "expected": -0.872,
16
    "expected_type": "number",
17
    "comparison": "f64_epsilon",
18
    "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.",
19
    "coerce_to": "number",
20
    "epsilon": 1e-08
21
  },
22
  {
23
    "id": "0101-feel-constants:004:Decision4",
24
    "expression": "50",
25
    "expected": 50.0,
26
    "expected_type": "number",
27
    "comparison": "f64_epsilon",
28
    "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.",
29
    "coerce_to": "number",
30
    "epsilon": 1e-08
31
  },
32
  {
33
    "id": "0101-feel-constants:005:Decision5",
34
    "expression": "-50",
35
    "expected": -50.0,
36
    "expected_type": "number",
37
    "comparison": "f64_epsilon",
38
    "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.",
39
    "coerce_to": "number",
40
    "epsilon": 1e-08
41
  },
42
  {
43
    "id": "0101-feel-constants:007:Decision7",
44
    "expression": "125.4321987654",
45
    "expected": 125.4321987654,
46
    "expected_type": "number",
47
    "comparison": "f64_epsilon",
48
    "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.",
49
    "coerce_to": "number",
50
    "epsilon": 1e-08
51
  },
52
  {
53
    "id": "0101-feel-constants:008:Decision8",
54
    "expression": "-125.4321987654",
55
    "expected": -125.4321987654,
56
    "expected_type": "number",
57
    "comparison": "f64_epsilon",
58
    "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.",
59
    "coerce_to": "number",
60
    "epsilon": 1e-08
61
  }
62
]