Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0063-feel-stddev-function:001:decision001",
4
    "expression": "stddev([2, 4, 7, 5])",
5
    "expected": 2.0816659994661,
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": "0063-feel-stddev-function:003:decision003",
13
    "expression": "stddev()",
14
    "expected": null,
15
    "expected_type": "null",
16
    "comparison": "exact",
17
    "deviation": null
18
  },
19
  {
20
    "id": "0063-feel-stddev-function:003_a:decision003_a",
21
    "expression": "stddev(null)",
22
    "expected": null,
23
    "expected_type": "null",
24
    "comparison": "exact",
25
    "deviation": null
26
  },
27
  {
28
    "id": "0063-feel-stddev-function:004:decision004",
29
    "expression": "stddev()",
30
    "expected": null,
31
    "expected_type": "null",
32
    "comparison": "exact",
33
    "deviation": null
34
  },
35
  {
36
    "id": "0063-feel-stddev-function:005:decision005",
37
    "expression": "stddev([1,2,\"foo\",4])",
38
    "expected": null,
39
    "expected_type": "null",
40
    "comparison": "exact",
41
    "deviation": null
42
  },
43
  {
44
    "id": "0063-feel-stddev-function:007:decision007",
45
    "expression": "stddev([])",
46
    "expected": null,
47
    "expected_type": "null",
48
    "comparison": "exact",
49
    "deviation": null
50
  },
51
  {
52
    "id": "0063-feel-stddev-function:008:decision008",
53
    "expression": "stddev(47)",
54
    "expected": null,
55
    "expected_type": "null",
56
    "comparison": "exact",
57
    "deviation": null
58
  },
59
  {
60
    "id": "0063-feel-stddev-function:008_a:decision008_a",
61
    "expression": "stddev([47])",
62
    "expected": null,
63
    "expected_type": "null",
64
    "comparison": "exact",
65
    "deviation": null
66
  },
67
  {
68
    "id": "0063-feel-stddev-function:009:decision009",
69
    "expression": "stddev(2, 4, 7, 5)",
70
    "expected": 2.0816659994661,
71
    "expected_type": "number",
72
    "comparison": "f64_epsilon",
73
    "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.",
74
    "epsilon": 1e-08
75
  }
76
]