Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "1144-feel-round-half-down-function:001:decision001",
4
    "expression": "round half down(5.5, 0)",
5
    "expected": 5.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": "1144-feel-round-half-down-function:002:decision002",
13
    "expression": "round half down(-5.5, 0)",
14
    "expected": -5.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": "1144-feel-round-half-down-function:003:decision003",
22
    "expression": "round half down(1.121, 2)",
23
    "expected": 1.12,
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": "1144-feel-round-half-down-function:004:decision004",
31
    "expression": "round half down(-1.126, 2)",
32
    "expected": -1.13,
33
    "expected_type": "number",
34
    "comparison": "f64_epsilon",
35
    "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.",
36
    "epsilon": 1e-08
37
  },
38
  {
39
    "id": "1144-feel-round-half-down-function:005:decision005",
40
    "expression": "round half down()",
41
    "expected": null,
42
    "expected_type": "null",
43
    "comparison": "exact",
44
    "deviation": null
45
  },
46
  {
47
    "id": "1144-feel-round-half-down-function:007:decision007",
48
    "expression": "round half down(null,0)",
49
    "expected": null,
50
    "expected_type": "null",
51
    "comparison": "exact",
52
    "deviation": null
53
  },
54
  {
55
    "id": "1144-feel-round-half-down-function:008:decision008",
56
    "expression": "round half down(1234,null)",
57
    "expected": null,
58
    "expected_type": "null",
59
    "comparison": "exact",
60
    "deviation": null
61
  },
62
  {
63
    "id": "1144-feel-round-half-down-function:009:decision009",
64
    "expression": "round half down(1234.12,1,2)",
65
    "expected": null,
66
    "expected_type": "null",
67
    "comparison": "exact",
68
    "deviation": null
69
  },
70
  {
71
    "id": "1144-feel-round-half-down-function:010:decision010",
72
    "expression": "round half down(n:5.5,scale:0)",
73
    "expected": 5.0,
74
    "expected_type": "number",
75
    "comparison": "f64_epsilon",
76
    "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.",
77
    "epsilon": 1e-08
78
  },
79
  {
80
    "id": "1144-feel-round-half-down-function:011_a:decision011_a",
81
    "expression": "round half down(scale:0)",
82
    "expected": null,
83
    "expected_type": "null",
84
    "comparison": "exact",
85
    "deviation": null
86
  },
87
  {
88
    "id": "1144-feel-round-half-down-function:012:decision012",
89
    "expression": "round half down(n:5.5,scale:0,foo:123)",
90
    "expected": null,
91
    "expected_type": "null",
92
    "comparison": "exact",
93
    "deviation": null
94
  },
95
  {
96
    "id": "1144-feel-round-half-down-function:013:decision013",
97
    "expression": "round half down(\"123\", 0)",
98
    "expected": null,
99
    "expected_type": "null",
100
    "comparison": "exact",
101
    "deviation": null
102
  },
103
  {
104
    "id": "1144-feel-round-half-down-function:014:decision014",
105
    "expression": "round half down(5.5, \"0\")",
106
    "expected": null,
107
    "expected_type": "null",
108
    "comparison": "exact",
109
    "deviation": null
110
  },
111
  {
112
    "id": "1144-feel-round-half-down-function:016_b:decision016_b",
113
    "expression": "round half down(5.5, (-6111 - 1))",
114
    "expected": null,
115
    "expected_type": "null",
116
    "comparison": "exact",
117
    "deviation": null
118
  },
119
  {
120
    "id": "1144-feel-round-half-down-function:017_a:decision017_a",
121
    "expression": "round half down(5.5, 6176)",
122
    "expected": 5.5,
123
    "expected_type": "number",
124
    "comparison": "f64_epsilon",
125
    "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.",
126
    "epsilon": 1e-08
127
  },
128
  {
129
    "id": "1144-feel-round-half-down-function:017_b:decision017_b",
130
    "expression": "round half down(5.5, (6176 + 1))",
131
    "expected": null,
132
    "expected_type": "null",
133
    "comparison": "exact",
134
    "deviation": null
135
  }
136
]