Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0075-feel-exponent:decision_001:decision_001",
4
    "expression": "3 ** 4 ** 5",
5
    "expected": 3486784401.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": "0075-feel-exponent:decision_001_a:decision_001_a",
13
    "expression": "-3 ** 2",
14
    "expected": 9.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": "0075-feel-exponent:decision_002:decision_002",
22
    "expression": "\"foo\" ** 4",
23
    "expected": null,
24
    "expected_type": "null",
25
    "comparison": "exact",
26
    "deviation": null
27
  },
28
  {
29
    "id": "0075-feel-exponent:decision_003:decision_003",
30
    "expression": "true ** 4",
31
    "expected": null,
32
    "expected_type": "null",
33
    "comparison": "exact",
34
    "deviation": null
35
  },
36
  {
37
    "id": "0075-feel-exponent:decision_004:decision_004",
38
    "expression": "date(\"2018-12-10\") ** 4",
39
    "expected": null,
40
    "expected_type": "null",
41
    "comparison": "exact",
42
    "deviation": null
43
  },
44
  {
45
    "id": "0075-feel-exponent:decision_005:decision_005",
46
    "expression": "time(\"10:30:00\") ** 4",
47
    "expected": null,
48
    "expected_type": "null",
49
    "comparison": "exact",
50
    "deviation": null
51
  },
52
  {
53
    "id": "0075-feel-exponent:decision_006:decision_006",
54
    "expression": "date and time(\"2018-12-10\") ** 4",
55
    "expected": null,
56
    "expected_type": "null",
57
    "comparison": "exact",
58
    "deviation": null
59
  },
60
  {
61
    "id": "0075-feel-exponent:decision_007:decision_007",
62
    "expression": "duration(\"P2Y\") ** 4",
63
    "expected": null,
64
    "expected_type": "null",
65
    "comparison": "exact",
66
    "deviation": null
67
  },
68
  {
69
    "id": "0075-feel-exponent:decision_008:decision_008",
70
    "expression": "duration(\"P2D\") ** 4",
71
    "expected": null,
72
    "expected_type": "null",
73
    "comparison": "exact",
74
    "deviation": null
75
  },
76
  {
77
    "id": "0075-feel-exponent:decision_009:decision_009",
78
    "expression": "{a: 2} ** 4",
79
    "expected": null,
80
    "expected_type": "null",
81
    "comparison": "exact",
82
    "deviation": null
83
  },
84
  {
85
    "id": "0075-feel-exponent:decision_010:decision_010",
86
    "expression": "[2] ** 4",
87
    "expected": null,
88
    "expected_type": "null",
89
    "comparison": "exact",
90
    "deviation": null
91
  }
92
]