Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0052-feel-exp-function:001:decision001",
4
    "expression": "exp(4)",
5
    "expected": 54.59815003,
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": "0052-feel-exp-function:002:decision002",
13
    "expression": "exp(-1)",
14
    "expected": 0.36787944,
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": "0052-feel-exp-function:003:decision003",
22
    "expression": "exp(0)",
23
    "expected": 1.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": "0052-feel-exp-function:004:decision004",
31
    "expression": "exp()",
32
    "expected": null,
33
    "expected_type": "null",
34
    "comparison": "exact",
35
    "deviation": null
36
  },
37
  {
38
    "id": "0052-feel-exp-function:005:decision005",
39
    "expression": "exp(4,4)",
40
    "expected": null,
41
    "expected_type": "null",
42
    "comparison": "exact",
43
    "deviation": null
44
  },
45
  {
46
    "id": "0052-feel-exp-function:006:decision006",
47
    "expression": "exp(number:4)",
48
    "expected": 54.59815003,
49
    "expected_type": "number",
50
    "comparison": "f64_epsilon",
51
    "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.",
52
    "epsilon": 1e-08
53
  },
54
  {
55
    "id": "0052-feel-exp-function:007:decision007",
56
    "expression": "exp(n:4)",
57
    "expected": null,
58
    "expected_type": "null",
59
    "comparison": "exact",
60
    "deviation": null
61
  },
62
  {
63
    "id": "0052-feel-exp-function:008:decision008",
64
    "expression": "exp(null)",
65
    "expected": null,
66
    "expected_type": "null",
67
    "comparison": "exact",
68
    "deviation": null
69
  },
70
  {
71
    "id": "0052-feel-exp-function:009:decision009",
72
    "expression": "exp(\"4\")",
73
    "expected": null,
74
    "expected_type": "null",
75
    "comparison": "exact",
76
    "deviation": null
77
  },
78
  {
79
    "id": "0052-feel-exp-function:010:decision010",
80
    "expression": "exp(true)",
81
    "expected": null,
82
    "expected_type": "null",
83
    "comparison": "exact",
84
    "deviation": null
85
  },
86
  {
87
    "id": "0052-feel-exp-function:011:decision011",
88
    "expression": "exp(duration(\"P4D\"))",
89
    "expected": null,
90
    "expected_type": "null",
91
    "comparison": "exact",
92
    "deviation": null
93
  },
94
  {
95
    "id": "0052-feel-exp-function:012:decision012",
96
    "expression": "exp(duration(\"P4Y\"))",
97
    "expected": null,
98
    "expected_type": "null",
99
    "comparison": "exact",
100
    "deviation": null
101
  },
102
  {
103
    "id": "0052-feel-exp-function:013:decision013",
104
    "expression": "exp(date(\"2018-12-06\"))",
105
    "expected": null,
106
    "expected_type": "null",
107
    "comparison": "exact",
108
    "deviation": null
109
  },
110
  {
111
    "id": "0052-feel-exp-function:014:decision014",
112
    "expression": "exp(time(\"00:00:00\"))",
113
    "expected": null,
114
    "expected_type": "null",
115
    "comparison": "exact",
116
    "deviation": null
117
  },
118
  {
119
    "id": "0052-feel-exp-function:015:decision015",
120
    "expression": "exp(date and time(\"2018-12-06T00:00:00\"))",
121
    "expected": null,
122
    "expected_type": "null",
123
    "comparison": "exact",
124
    "deviation": null
125
  }
126
]