Public repository: timo / feel

Reader

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

1
[
2
  {
3
    "id": "0093-feel-at-literals:date_001:date_001",
4
    "expression": "@\"2019-03-31\" instance of date",
5
    "expected": true,
6
    "expected_type": "boolean",
7
    "comparison": "exact",
8
    "deviation": null
9
  },
10
  {
11
    "id": "0093-feel-at-literals:date_002:date_002",
12
    "expression": "@\"2019-03-31\"",
13
    "expected": "2019-03-31",
14
    "expected_type": "date",
15
    "comparison": "exact",
16
    "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects."
17
  },
18
  {
19
    "id": "0093-feel-at-literals:datetime_001:datetime_001",
20
    "expression": "@\"2018-12-08T10:30:11\" instance of date and time",
21
    "expected": true,
22
    "expected_type": "boolean",
23
    "comparison": "exact",
24
    "deviation": null
25
  },
26
  {
27
    "id": "0093-feel-at-literals:datetime_002:datetime_002",
28
    "expression": "@\"2018-12-08T10:30:11\"",
29
    "expected": "2018-12-08T10:30:11",
30
    "expected_type": "date and time",
31
    "comparison": "exact",
32
    "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects."
33
  },
34
  {
35
    "id": "0093-feel-at-literals:datetime_003:datetime_003",
36
    "expression": "@\"2018-12-08T10:30:11@Australia/Melbourne\" instance of date and time",
37
    "expected": true,
38
    "expected_type": "boolean",
39
    "comparison": "exact",
40
    "deviation": null
41
  },
42
  {
43
    "id": "0093-feel-at-literals:datetime_004:datetime_004",
44
    "expression": "string(@\"2018-12-08T10:30:11@Australia/Melbourne\")",
45
    "expected": "2018-12-08T10:30:11@Australia/Melbourne",
46
    "expected_type": "string",
47
    "comparison": "exact",
48
    "deviation": null
49
  },
50
  {
51
    "id": "0093-feel-at-literals:datetime_005:datetime_005",
52
    "expression": "@\"2018-12-08T10:30:11+11:00\" instance of date and time",
53
    "expected": true,
54
    "expected_type": "boolean",
55
    "comparison": "exact",
56
    "deviation": null
57
  },
58
  {
59
    "id": "0093-feel-at-literals:datetime_006:datetime_006",
60
    "expression": "@\"2018-12-08T10:30:11+11:00\"",
61
    "expected": "2018-12-08T10:30:11+11:00",
62
    "expected_type": "date and time",
63
    "comparison": "exact",
64
    "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects."
65
  },
66
  {
67
    "id": "0093-feel-at-literals:dt_duration_001:dt_duration_001",
68
    "expression": "@\"P10D\" instance of days and time duration",
69
    "expected": true,
70
    "expected_type": "boolean",
71
    "comparison": "exact",
72
    "deviation": null
73
  },
74
  {
75
    "id": "0093-feel-at-literals:dt_duration_002:dt_duration_002",
76
    "expression": "@\"P10D\"",
77
    "expected": "P10D",
78
    "expected_type": "duration",
79
    "comparison": "exact",
80
    "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects."
81
  },
82
  {
83
    "id": "0093-feel-at-literals:test_001:test_001",
84
    "expression": "@\"foo\"",
85
    "expected": null,
86
    "expected_type": "null",
87
    "comparison": "exact",
88
    "deviation": null
89
  },
90
  {
91
    "id": "0093-feel-at-literals:time_001:time_001",
92
    "expression": "@\"10:30:11\" instance of time",
93
    "expected": true,
94
    "expected_type": "boolean",
95
    "comparison": "exact",
96
    "deviation": null
97
  },
98
  {
99
    "id": "0093-feel-at-literals:time_002:time_002",
100
    "expression": "@\"10:30:11\"",
101
    "expected": "10:30:11",
102
    "expected_type": "time",
103
    "comparison": "exact",
104
    "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects."
105
  },
106
  {
107
    "id": "0093-feel-at-literals:time_003:time_003",
108
    "expression": "@\"10:30:11+11:00\" instance of time",
109
    "expected": true,
110
    "expected_type": "boolean",
111
    "comparison": "exact",
112
    "deviation": null
113
  },
114
  {
115
    "id": "0093-feel-at-literals:time_004:time_004",
116
    "expression": "@\"10:30:11+11:00\"",
117
    "expected": "10:30:11+11:00",
118
    "expected_type": "time",
119
    "comparison": "exact",
120
    "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects."
121
  },
122
  {
123
    "id": "0093-feel-at-literals:time_005:time_005",
124
    "expression": "@\"10:30:11@Australia/Melbourne\" instance of time",
125
    "expected": true,
126
    "expected_type": "boolean",
127
    "comparison": "exact",
128
    "deviation": null
129
  },
130
  {
131
    "id": "0093-feel-at-literals:time_006:time_006",
132
    "expression": "string(@\"10:30:11@Australia/Melbourne\")",
133
    "expected": "10:30:11@Australia/Melbourne",
134
    "expected_type": "string",
135
    "comparison": "exact",
136
    "deviation": null
137
  },
138
  {
139
    "id": "0093-feel-at-literals:ym_duration_001:ym_duration_001",
140
    "expression": "@\"P10Y\" instance of years and months duration",
141
    "expected": true,
142
    "expected_type": "boolean",
143
    "comparison": "exact",
144
    "deviation": null
145
  },
146
  {
147
    "id": "0093-feel-at-literals:ym_duration_002:ym_duration_002",
148
    "expression": "@\"P10Y\"",
149
    "expected": "P10Y",
150
    "expected_type": "duration",
151
    "comparison": "exact",
152
    "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects."
153
  }
154
]