Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0084-feel-for-loops:decision_001:decision_001",
4
    "expression": "for i in [1,2,3] return i + 1",
5
    "expected": [
6
      2.0,
7
      3.0,
8
      4.0
9
    ],
10
    "expected_type": "list",
11
    "comparison": "exact",
12
    "deviation": null
13
  },
14
  {
15
    "id": "0084-feel-for-loops:decision_002:decision_002",
16
    "expression": "for i in [1,2,3], j in [4,5] return i + j",
17
    "expected": [
18
      5.0,
19
      6.0,
20
      6.0,
21
      7.0,
22
      7.0,
23
      8.0
24
    ],
25
    "expected_type": "list",
26
    "comparison": "exact",
27
    "deviation": null
28
  },
29
  {
30
    "id": "0084-feel-for-loops:decision_003:decision_003",
31
    "expression": "for i in [] return i",
32
    "expected": [],
33
    "expected_type": "list",
34
    "comparison": "exact",
35
    "deviation": null
36
  },
37
  {
38
    "id": "0084-feel-for-loops:decision_007:decision_007",
39
    "expression": "for i in 2..4 return i",
40
    "expected": [
41
      2.0,
42
      3.0,
43
      4.0
44
    ],
45
    "expected_type": "list",
46
    "comparison": "exact",
47
    "deviation": null
48
  },
49
  {
50
    "id": "0084-feel-for-loops:decision_008:decision_008",
51
    "expression": "for i in 4..2 return i",
52
    "expected": [
53
      4.0,
54
      3.0,
55
      2.0
56
    ],
57
    "expected_type": "list",
58
    "comparison": "exact",
59
    "deviation": null
60
  },
61
  {
62
    "id": "0084-feel-for-loops:decision_009:decision_009",
63
    "expression": "for i in -1..1 return i",
64
    "expected": [
65
      -1.0,
66
      0.0,
67
      1.0
68
    ],
69
    "expected_type": "list",
70
    "comparison": "exact",
71
    "deviation": null
72
  },
73
  {
74
    "id": "0084-feel-for-loops:decision_010:decision_010",
75
    "expression": "for i in 1..-1 return i",
76
    "expected": [
77
      1.0,
78
      0.0,
79
      -1.0
80
    ],
81
    "expected_type": "list",
82
    "comparison": "exact",
83
    "deviation": null
84
  },
85
  {
86
    "id": "0084-feel-for-loops:decision_011:decision_011",
87
    "expression": "for i in 1..1 return i",
88
    "expected": [
89
      1.0
90
    ],
91
    "expected_type": "list",
92
    "comparison": "exact",
93
    "deviation": null
94
  },
95
  {
96
    "id": "0084-feel-for-loops:decision_012:decision_012",
97
    "expression": "for i in 1+1..1+3 return i",
98
    "expected": [
99
      2.0,
100
      3.0,
101
      4.0
102
    ],
103
    "expected_type": "list",
104
    "comparison": "exact",
105
    "deviation": null
106
  },
107
  {
108
    "id": "0084-feel-for-loops:decision_015:decision_015",
109
    "expression": "for x in [ [1,2], [3,4] ], y in x return y",
110
    "expected": [
111
      1.0,
112
      2.0,
113
      3.0,
114
      4.0
115
    ],
116
    "expected_type": "list",
117
    "comparison": "exact",
118
    "deviation": null
119
  },
120
  {
121
    "id": "0084-feel-for-loops:decision_016:decision_016",
122
    "expression": "for x in [ [1,2], [3,4] ] return for y in x return y",
123
    "expected": [
124
      [
125
        1.0,
126
        2.0
127
      ],
128
      [
129
        3.0,
130
        4.0
131
      ]
132
    ],
133
    "expected_type": "list",
134
    "comparison": "exact",
135
    "deviation": null
136
  },
137
  {
138
    "id": "0084-feel-for-loops:decision_019:decision_019",
139
    "expression": "for i in \"a\"..\"z\" return i",
140
    "expected": null,
141
    "expected_type": "null",
142
    "comparison": "exact",
143
    "deviation": null
144
  },
145
  {
146
    "id": "0084-feel-for-loops:decision_020:decision_020",
147
    "expression": "for i in @\"1980-01-03T00:00:00\"..@\"1980-01-01T00:00:00\" return i",
148
    "expected": null,
149
    "expected_type": "null",
150
    "comparison": "exact",
151
    "deviation": null
152
  },
153
  {
154
    "id": "0084-feel-for-loops:decision_021:decision_021",
155
    "expression": "for i in @\"00:00:00\"..@\"00:00:00\" return i",
156
    "expected": null,
157
    "expected_type": "null",
158
    "comparison": "exact",
159
    "deviation": null
160
  },
161
  {
162
    "id": "0084-feel-for-loops:decision_022:decision_022",
163
    "expression": "for i in @\"P1D\"..@\"P2D\" return i",
164
    "expected": null,
165
    "expected_type": "null",
166
    "comparison": "exact",
167
    "deviation": null
168
  }
169
]