Public repository: timo / feel

Reader

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

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