Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0096-feel-day-of-week-function:date_002:date_002",
4
    "expression": "day of week(date: @\"2019-09-17\")",
5
    "expected": "Tuesday",
6
    "expected_type": "string",
7
    "comparison": "exact",
8
    "deviation": null
9
  },
10
  {
11
    "id": "0096-feel-day-of-week-function:datetime_002:datetime_002",
12
    "expression": "day of week(date: @\"2019-09-17T10:10:10\")",
13
    "expected": "Tuesday",
14
    "expected_type": "string",
15
    "comparison": "exact",
16
    "deviation": null
17
  },
18
  {
19
    "id": "0096-feel-day-of-week-function:null_001:null_001",
20
    "expression": "day of week(null)",
21
    "expected": null,
22
    "expected_type": "null",
23
    "comparison": "exact",
24
    "deviation": null
25
  },
26
  {
27
    "id": "0096-feel-day-of-week-function:null_002:null_002",
28
    "expression": "day of week()",
29
    "expected": null,
30
    "expected_type": "null",
31
    "comparison": "exact",
32
    "deviation": null
33
  },
34
  {
35
    "id": "0096-feel-day-of-week-function:null_003:null_003",
36
    "expression": "day of week(\"foo\")",
37
    "expected": null,
38
    "expected_type": "null",
39
    "comparison": "exact",
40
    "deviation": null
41
  },
42
  {
43
    "id": "0096-feel-day-of-week-function:null_004:null_004",
44
    "expression": "day of week(date: null)",
45
    "expected": null,
46
    "expected_type": "null",
47
    "comparison": "exact",
48
    "deviation": null
49
  },
50
  {
51
    "id": "0096-feel-day-of-week-function:null_005:null_005",
52
    "expression": "day of week(date: \"foo\")",
53
    "expected": null,
54
    "expected_type": "null",
55
    "comparison": "exact",
56
    "deviation": null
57
  },
58
  {
59
    "id": "0096-feel-day-of-week-function:null_006:null_006",
60
    "expression": "day of week(value: @\"1970-01-01\")",
61
    "expected": null,
62
    "expected_type": "null",
63
    "comparison": "exact",
64
    "deviation": null
65
  },
66
  {
67
    "id": "0096-feel-day-of-week-function:null_007:null_007",
68
    "expression": "day of week(date_input_001)",
69
    "expected": null,
70
    "expected_type": "null",
71
    "comparison": "exact",
72
    "deviation": null,
73
    "context": {
74
      "date_input_001": "foo"
75
    }
76
  },
77
  {
78
    "id": "0096-feel-day-of-week-function:null_008:null_008",
79
    "expression": "day of week(@\"1970-01-01\", @\"1970-01-01\")",
80
    "expected": null,
81
    "expected_type": "null",
82
    "comparison": "exact",
83
    "deviation": null
84
  }
85
]