Public repository: timo / feel

Reader

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

feat(core): positive unary tests for `in` (TCK 0072, +202 cases)

public

feat(core): positive unary tests for `in` (TCK 0072, +202 cases)

Generalise membership `in` from interval-only to DMN positive unary tests
(§10.3.2.6, grammar rule 49). `Expr::In` now carries a `Vec<UnaryTest>` evaluated
with Kleene OR, where each `UnaryTest` is a comparison (`< e`, `= e`, `!= e`, …)
or an interval. The grammar adds the two LR(1)-clean forms after `in`:

  - comparison: `x in < 10`, `x in = e`, `x in != e` (any endpoint expression,
    e.g. `x in = [1,2,3]`, `x in = @"2018-12-05"`);
  - single interval `[a..b]` / `(a..b)` with ANY endpoints, including function
    calls (`date(…) in [date(…)..date(…)]`).

Most of 0072's previously-skipped cases were intervals with function-call
endpoints that the grammar *already* parsed but the ingester's regex rejected;
the slice detector now classifies the `in` RHS with a balanced-bracket scan
(`_in_rhs_supported`/`_single_interval`), accepting comparisons and single
intervals while still rejecting the deferred comma-list / bare-equality forms.

0072-feel-in: 45 → 247 cases. Fixture suite: 2598 cases / 85 files, all green.

Deferred (need the interval-vs-list bracket disambiguation LR(1) can't do without
inlining the expression grammar, or `not(…)` which collides with the boolean
built-in): comma-lists `x in [1,2,3]` / `x in (a, < b)`, bare equality `1 in 1`,
and lists of intervals `x in [[a..b],[c..d]]`. See ROADMAP.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changeset1d33cb2ce3770c0cc1500d8f567ea26d35dd3df7
Author (claimed)Timo Stolz <timo.stolz@gmail.com>,
Parents762b5e3bee4c
Children
Pushlog
by timo via ssh

modified README.md +5 −2

@@ -22,8 +22,11 @@
2222
 - **Literals:** number, string, boolean, `null`, list (`[1, 2, 3]`, `[]`).
2323
 - **Arithmetic:** `+ - * /`, `**` (left-associative), unary `-`. Division by
2424
   zero / type errors → `null`.
25
-- **Comparison:** `< <= > >= = !=`, `between … and …`, interval `in`
26
-  (`[a..b]`, `(a..b]`, `[a..b)`, `(a..b)`) over numbers and strings.
25
+- **Comparison:** `< <= > >= = !=`, `between … and …`, and membership `in`
26
+  with a positive unary test (DMN §10.3.2.6) — an interval (`[a..b]`, `(a..b]`,
27
+  `[a..b)`, `(a..b)`) or a comparison (`x in < 10`, `x in = e`, `x in != e`) over
28
+  numbers, strings, and temporals. (The comma-list forms `x in [1,2,3]` /
29
+  `x in (a, < b)` are deferred — see ROADMAP.)
2730
 - **Type predicate (§10.3.2.9):** `value instance of type` over the built-in
2831
   types (`number`, `string`, `date and time`, …, `Any`, `Null`) and inline
2932
   generics `list<T>`, `context<k: T, …>`, `function<…> -> T`; an unmappable type

modified crates/feel-core/src/ast.rs +29 −6

@@ -55,8 +55,12 @@
5555
     Compare(CmpOp, Box<Expr>, Box<Expr>),
5656
     /// `value between low and high` — sugar for `low <= value and value <= high`.
5757
     Between(Box<Expr>, Box<Expr>, Box<Expr>),
58
-    /// Membership test `value in interval`.
59
-    In(Box<Expr>, Interval),
58
+    /// Membership test `value in <tests>` (DMN §10.3.2.6, grammar rule 49). The
59
+    /// right-hand side is one or more *positive unary tests* (an interval, an
60
+    /// `<op> endpoint` comparison, or a bare expression meaning equality), combined
61
+    /// with OR. See [`UnaryTest`]. (`not(...)` negation of unary tests is not in
62
+    /// this slice — it collides with the `not(…)` boolean built-in.)
63
+    In(Box<Expr>, Vec<UnaryTest>),
6064
     /// Type predicate `value instance of type` (DMN §10.3.2.9, grammar rule 51).
6165
     /// The right operand is a [`FeelType`] resolved at parse time (it carries no
6266
     /// runtime data); an unmappable type name parses as [`FeelType::Unknown`] so
@@ -169,6 +173,18 @@
169173
     pub start: Box<Expr>,
170174
     pub end: Box<Expr>,
171175
     pub end_open: bool,
176
+}
177
+
178
+/// One positive unary test (DMN grammar rule 54): an interval, an `<op> endpoint`
179
+/// comparison, or — for a bare expression — an equality (`= endpoint`).
180
+#[derive(Debug, Clone, PartialEq)]
181
+pub enum UnaryTest {
182
+    /// `< e`, `<= e`, `> e`, `>= e`, `= e`, `!= e`. A bare endpoint parses as
183
+    /// `Compare(Eq, e)` (so `x in 3` means `x = 3`, and `x in [a,b]` is `= a` OR
184
+    /// `= b`).
185
+    Compare(CmpOp, Box<Expr>),
186
+    /// An interval test `[a..b]` / `(a..b)` / … (the bracket openness in [`Interval`]).
187
+    Interval(Interval),
172188
 }
173189
 
174190
 /// A node in the FEEL type lattice **L** (DMN §10.3.2.9), the right operand of
@@ -316,10 +332,8 @@
316332
             Expr::Between(a, b, c) | Expr::If(a, b, c) => {
317333
                 a.is_clock_free() && b.is_clock_free() && c.is_clock_free()
318334
             }
319
-            Expr::In(value, interval) => {
320
-                value.is_clock_free()
321
-                    && interval.start.is_clock_free()
322
-                    && interval.end.is_clock_free()
335
+            Expr::In(value, tests) => {
336
+                value.is_clock_free() && tests.iter().all(UnaryTest::is_clock_free)
323337
             }
324338
             // The type operand is static (resolved to a `FeelType` at parse time, no
325339
             // nested `Expr`), so only the value expression can read the clock.
@@ -344,3 +358,12 @@
344358
         }
345359
     }
346360
 }
361
+
362
+impl UnaryTest {
363
+    fn is_clock_free(&self) -> bool {
364
+        match self {
365
+            UnaryTest::Compare(_, e) => e.is_clock_free(),
366
+            UnaryTest::Interval(iv) => iv.start.is_clock_free() && iv.end.is_clock_free(),
367
+        }
368
+    }
369
+}

modified crates/feel-core/src/eval.rs +32 −17

@@ -12,7 +12,7 @@
1212
 use std::collections::BTreeMap;
1313
 use std::sync::Arc;
1414
 
15
-use crate::ast::{ArithOp, CallArgs, CmpOp, Expr, FeelType, Interval, IterSource, Quantifier};
15
+use crate::ast::{ArithOp, CallArgs, CmpOp, Expr, FeelType, IterSource, Quantifier, UnaryTest};
1616
 use crate::builtins::resolve_index;
1717
 use crate::function::{Args, Closure, Func};
1818
 use crate::{temporal, Context, EvalEnv, FeelError, Value};
@@ -125,7 +125,7 @@
125125
                     eval_compare(CmpOp::Le, &v, &hi),
126126
                 ))
127127
             }
128
-            Expr::In(value, interval) => self.eval_in(value, interval, ctx),
128
+            Expr::In(value, tests) => self.eval_in(value, tests, ctx),
129129
             // Type predicate (DMN §10.3.2.9, rule 51). An unmappable type → null; a
130130
             // null/error value is an instance only of `Null`; any other value is
131131
             // checked structurally against the target type (ADR-26).
@@ -498,22 +498,37 @@
498498
     /// Membership test, interval inclusivity exactly per S-FEEL:
499499
     ///   [a..b] -> a <= o <= b ;  (a..b] -> a < o <= b ;  [a..b) -> a <= o < b ;
500500
     ///   (a..b) -> a < o < b
501
-    fn eval_in(&self, value: &Expr, interval: &Interval, ctx: &Context) -> EvalResult {
501
+    fn eval_in(&self, value: &Expr, tests: &[UnaryTest], ctx: &Context) -> EvalResult {
502502
         let o = self.eval(value, ctx)?.forced();
503
-        let lo = self.eval(&interval.start, ctx)?.forced();
504
-        let hi = self.eval(&interval.end, ctx)?.forced();
505
-
506
-        let lower = if interval.start_open {
507
-            eval_compare(CmpOp::Lt, &lo, &o)
508
-        } else {
509
-            eval_compare(CmpOp::Le, &lo, &o)
510
-        };
511
-        let upper = if interval.end_open {
512
-            eval_compare(CmpOp::Lt, &o, &hi)
513
-        } else {
514
-            eval_compare(CmpOp::Le, &o, &hi)
515
-        };
516
-        Ok(and3(lower, upper))
503
+        // The input satisfies the membership if it satisfies ANY test (Kleene OR,
504
+        // so a null/error from one test only sticks if no test is a definite true).
505
+        let mut acc = Value::Boolean(false);
506
+        for test in tests {
507
+            acc = or3(acc, self.eval_unary_test(&o, test, ctx)?);
508
+        }
509
+        Ok(acc)
510
+    }
511
+
512
+    /// Evaluate one positive unary test against the already-evaluated input `o`.
513
+    fn eval_unary_test(&self, o: &Value, test: &UnaryTest, ctx: &Context) -> EvalResult {
514
+        Ok(match test {
515
+            UnaryTest::Compare(op, e) => eval_compare(*op, o, &self.eval(e, ctx)?.forced()),
516
+            UnaryTest::Interval(iv) => {
517
+                let lo = self.eval(&iv.start, ctx)?.forced();
518
+                let hi = self.eval(&iv.end, ctx)?.forced();
519
+                let lower = eval_compare(
520
+                    if iv.start_open { CmpOp::Lt } else { CmpOp::Le },
521
+                    &lo,
522
+                    o,
523
+                );
524
+                let upper = eval_compare(
525
+                    if iv.end_open { CmpOp::Lt } else { CmpOp::Le },
526
+                    o,
527
+                    &hi,
528
+                );
529
+                and3(lower, upper)
530
+            }
531
+        })
517532
     }
518533
 }
519534
 

modified crates/feel-core/src/feel.lalrpop +16 −2

@@ -13,7 +13,7 @@
1313
 // left-recursive on purpose; lalrpop (LR(1)) handles that natively, which is the
1414
 // reason we chose it.
1515
 
16
-use crate::ast::{ArgEntry, ArithOp, CallArgs, CmpOp, Expr, FeelType, Interval, IterSource, Quantifier, TypeArg, callargs_from, generic_type, simple_type};
16
+use crate::ast::{ArgEntry, ArithOp, CallArgs, CmpOp, Expr, FeelType, Interval, IterSource, Quantifier, TypeArg, UnaryTest, callargs_from, generic_type, simple_type};
1717
 use crate::lexer::{LexError, Tok};
1818
 
1919
 grammar;
@@ -119,7 +119,7 @@
119119
 Comparison: Expr = {
120120
     <l:Sum> <op:CmpOp> <r:Sum> => Expr::Compare(op, Box::new(l), Box::new(r)),
121121
     <v:Sum> "between" <lo:Sum> "and" <hi:Sum> => Expr::Between(Box::new(v), Box::new(lo), Box::new(hi)),
122
-    <v:Sum> "in" <iv:Interval> => Expr::In(Box::new(v), iv),
122
+    <v:Sum> "in" <t:InRhs> => Expr::In(Box::new(v), t),
123123
     // Type predicate `value instance of type` (DMN §10.3.2.9, rule 51). The lexer
124124
     // fuses `instance of` into one operator token, so after a `Sum` the lookahead is
125125
     // unambiguous (no clash with the comparison/`between`/`in` alternatives).
@@ -276,6 +276,20 @@
276276
     <e:Disjunction> => IterSource::Expr(Box::new(e)),
277277
 };
278278
 
279
+// The right-hand side of membership `in` — positive unary tests (DMN rule 49).
280
+// This slice covers the two LR(1)-clean forms: a single comparison test
281
+// `<op> endpoint` (`< 10`, `= e`, `!= e`, with any endpoint expression including a
282
+// list `=[1,2,3]` or a temporal `=@"…"`), and a single interval `[a..b]` / `(a..b)`
283
+// (with any endpoints, e.g. `date(…)`). The comma-separated *list* forms
284
+// (`[2,3,1]`, `(false, true)`, `[[a..b],[c..d]]`) need the interval-vs-list bracket
285
+// disambiguation that LR(1) cannot do here without inlining the whole expression
286
+// grammar; they are deferred (see ROADMAP). `not(…)` negation is out too (it
287
+// collides with the `not(…)` boolean built-in).
288
+InRhs: Vec<UnaryTest> = {
289
+    <op:CmpOp> <e:Sum> => vec![UnaryTest::Compare(op, Box::new(e))],
290
+    <iv:Interval> => vec![UnaryTest::Interval(iv)],
291
+};
292
+
279293
 // Interval / range literal (only reachable after membership `in`). The boolean
280294
 // carries the openness of each endpoint.
281295
 Interval: Interval = {

modified crates/feel-core/src/lib.rs +18 −0

@@ -477,6 +477,24 @@
477477
         assert_eq!(ev("1 in (1..10]"), b(false)); // open lower excludes
478478
         assert_eq!(ev("10 in [1..10)"), b(false)); // open upper excludes
479479
         assert_eq!(ev("11 in [1..10]"), b(false)); // out of range
480
+        // A null bound makes the test null (Kleene), per DMN-TCK 0072.
481
+        assert_eq!(ev("5 in (null..10]"), Value::Null);
482
+    }
483
+
484
+    #[test]
485
+    fn membership_unary_comparison_tests() {
486
+        // `in <op> endpoint` — a positive unary test (DMN rule 49).
487
+        assert_eq!(ev("1 in <= 10"), b(true));
488
+        assert_eq!(ev("11 in <= 10"), b(false));
489
+        assert_eq!(ev("11 in >= 10"), b(true));
490
+        assert_eq!(ev("1 in < 10"), b(true));
491
+        assert_eq!(ev("11 in > 10"), b(true));
492
+        assert_eq!(ev("10 in = 10"), b(true));
493
+        assert_eq!(ev("10 in != 10"), b(false));
494
+        // The endpoint is an arbitrary expression (a list value, a string).
495
+        assert_eq!(ev("[1, 2, 3] in = [1, 2, 3]"), b(true));
496
+        assert_eq!(ev("[1, 2, 3] in != [1, 2, 3, 4]"), b(true));
497
+        assert_eq!(ev(r#""b" in > "a""#), b(true));
480498
     }
481499
 
482500
     #[test]

modified crates/feel-core/tests/fixtures/0072-feel-in.json +1616 −0

@@ -1,4 +1,884 @@
11
 [
2
+  {
3
+    "id": "0072-feel-in:boolean_015_a:boolean_015_a",
4
+    "expression": "true in =true",
5
+    "expected": true,
6
+    "expected_type": "boolean",
7
+    "comparison": "exact",
8
+    "deviation": null
9
+  },
10
+  {
11
+    "id": "0072-feel-in:boolean_015_c:boolean_015_c",
12
+    "expression": "true in =false",
13
+    "expected": false,
14
+    "expected_type": "boolean",
15
+    "comparison": "exact",
16
+    "deviation": null
17
+  },
18
+  {
19
+    "id": "0072-feel-in:boolean_016_a:boolean_016_a",
20
+    "expression": "true in !=true",
21
+    "expected": false,
22
+    "expected_type": "boolean",
23
+    "comparison": "exact",
24
+    "deviation": null
25
+  },
26
+  {
27
+    "id": "0072-feel-in:boolean_016_c:boolean_016_c",
28
+    "expression": "true in !=false",
29
+    "expected": true,
30
+    "expected_type": "boolean",
31
+    "comparison": "exact",
32
+    "deviation": null
33
+  },
34
+  {
35
+    "id": "0072-feel-in:dateTime_003:dateTime_003",
36
+    "expression": "date and time(\"2018-12-08T10:30:04\") in <= date and time(\"2018-12-08T10:30:05\")",
37
+    "expected": true,
38
+    "expected_type": "boolean",
39
+    "comparison": "exact",
40
+    "deviation": null
41
+  },
42
+  {
43
+    "id": "0072-feel-in:dateTime_003_1:dateTime_003_1",
44
+    "expression": "date and time(\"2018-12-08T10:30:04\") in <= date and time(\"2018-12-08T10:30:04\")",
45
+    "expected": true,
46
+    "expected_type": "boolean",
47
+    "comparison": "exact",
48
+    "deviation": null
49
+  },
50
+  {
51
+    "id": "0072-feel-in:dateTime_003_a:dateTime_003_a",
52
+    "expression": "date and time(\"2018-12-08T10:30:05\") in <= date and time(\"2018-12-08T10:30:04\")",
53
+    "expected": false,
54
+    "expected_type": "boolean",
55
+    "comparison": "exact",
56
+    "deviation": null
57
+  },
58
+  {
59
+    "id": "0072-feel-in:dateTime_004:dateTime_004",
60
+    "expression": "date and time(\"2018-12-08T10:30:01\") in < date and time(\"2018-12-08T10:30:10\")",
61
+    "expected": true,
62
+    "expected_type": "boolean",
63
+    "comparison": "exact",
64
+    "deviation": null
65
+  },
66
+  {
67
+    "id": "0072-feel-in:dateTime_004_a:dateTime_004_a",
68
+    "expression": "date and time(\"2018-12-08T10:30:10\") in < date and time(\"2018-12-08T10:30:10\")",
69
+    "expected": false,
70
+    "expected_type": "boolean",
71
+    "comparison": "exact",
72
+    "deviation": null
73
+  },
74
+  {
75
+    "id": "0072-feel-in:dateTime_005:dateTime_005",
76
+    "expression": "date and time(\"2018-12-08T10:30:11\") in >= date and time(\"2018-12-08T10:30:10\")",
77
+    "expected": true,
78
+    "expected_type": "boolean",
79
+    "comparison": "exact",
80
+    "deviation": null
81
+  },
82
+  {
83
+    "id": "0072-feel-in:dateTime_005_1:dateTime_005_1",
84
+    "expression": "date and time(\"2018-12-08T10:30:10\") in >= date and time(\"2018-12-08T10:30:10\")",
85
+    "expected": true,
86
+    "expected_type": "boolean",
87
+    "comparison": "exact",
88
+    "deviation": null
89
+  },
90
+  {
91
+    "id": "0072-feel-in:dateTime_005_a:dateTime_005_a",
92
+    "expression": "date and time(\"2018-12-08T10:30:09\") in >= date and time(\"2018-12-08T10:30:10\")",
93
+    "expected": false,
94
+    "expected_type": "boolean",
95
+    "comparison": "exact",
96
+    "deviation": null
97
+  },
98
+  {
99
+    "id": "0072-feel-in:dateTime_006:dateTime_006",
100
+    "expression": "date and time(\"2018-12-08T10:30:11\") in > date and time(\"2018-12-08T10:30:10\")",
101
+    "expected": true,
102
+    "expected_type": "boolean",
103
+    "comparison": "exact",
104
+    "deviation": null
105
+  },
106
+  {
107
+    "id": "0072-feel-in:dateTime_006_a:dateTime_006_a",
108
+    "expression": "date and time(\"2018-12-08T10:30:10\") in > date and time(\"2018-12-08T10:30:10\")",
109
+    "expected": false,
110
+    "expected_type": "boolean",
111
+    "comparison": "exact",
112
+    "deviation": null
113
+  },
114
+  {
115
+    "id": "0072-feel-in:dateTime_007_a:dateTime_007_a",
116
+    "expression": "date and time(\"2018-12-08T10:30:01\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
117
+    "expected": false,
118
+    "expected_type": "boolean",
119
+    "comparison": "exact",
120
+    "deviation": null
121
+  },
122
+  {
123
+    "id": "0072-feel-in:dateTime_007_b:dateTime_007_b",
124
+    "expression": "date and time(\"2018-12-08T10:30:02\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
125
+    "expected": false,
126
+    "expected_type": "boolean",
127
+    "comparison": "exact",
128
+    "deviation": null
129
+  },
130
+  {
131
+    "id": "0072-feel-in:dateTime_007_c:dateTime_007_c",
132
+    "expression": "date and time(\"2018-12-08T10:30:03\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
133
+    "expected": true,
134
+    "expected_type": "boolean",
135
+    "comparison": "exact",
136
+    "deviation": null
137
+  },
138
+  {
139
+    "id": "0072-feel-in:dateTime_007_d:dateTime_007_d",
140
+    "expression": "date and time(\"2018-12-08T10:30:04\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
141
+    "expected": false,
142
+    "expected_type": "boolean",
143
+    "comparison": "exact",
144
+    "deviation": null
145
+  },
146
+  {
147
+    "id": "0072-feel-in:dateTime_007_e:dateTime_007_e",
148
+    "expression": "date and time(\"2018-12-08T10:30:05\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
149
+    "expected": false,
150
+    "expected_type": "boolean",
151
+    "comparison": "exact",
152
+    "deviation": null
153
+  },
154
+  {
155
+    "id": "0072-feel-in:dateTime_008_a:dateTime_008_a",
156
+    "expression": "date and time(\"2018-12-08T10:30:01\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
157
+    "expected": false,
158
+    "expected_type": "boolean",
159
+    "comparison": "exact",
160
+    "deviation": null
161
+  },
162
+  {
163
+    "id": "0072-feel-in:dateTime_008_b:dateTime_008_b",
164
+    "expression": "date and time(\"2018-12-08T10:30:02\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
165
+    "expected": false,
166
+    "expected_type": "boolean",
167
+    "comparison": "exact",
168
+    "deviation": null
169
+  },
170
+  {
171
+    "id": "0072-feel-in:dateTime_008_c:dateTime_008_c",
172
+    "expression": "date and time(\"2018-12-08T10:30:03\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
173
+    "expected": true,
174
+    "expected_type": "boolean",
175
+    "comparison": "exact",
176
+    "deviation": null
177
+  },
178
+  {
179
+    "id": "0072-feel-in:dateTime_008_d:dateTime_008_d",
180
+    "expression": "date and time(\"2018-12-08T10:30:04\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
181
+    "expected": true,
182
+    "expected_type": "boolean",
183
+    "comparison": "exact",
184
+    "deviation": null
185
+  },
186
+  {
187
+    "id": "0072-feel-in:dateTime_008_e:dateTime_008_e",
188
+    "expression": "date and time(\"2018-12-08T10:30:05\") in (date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
189
+    "expected": false,
190
+    "expected_type": "boolean",
191
+    "comparison": "exact",
192
+    "deviation": null
193
+  },
194
+  {
195
+    "id": "0072-feel-in:dateTime_009_a:dateTime_009_a",
196
+    "expression": "date and time(\"2018-12-08T10:30:01\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
197
+    "expected": false,
198
+    "expected_type": "boolean",
199
+    "comparison": "exact",
200
+    "deviation": null
201
+  },
202
+  {
203
+    "id": "0072-feel-in:dateTime_009_b:dateTime_009_b",
204
+    "expression": "date and time(\"2018-12-08T10:30:02\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
205
+    "expected": true,
206
+    "expected_type": "boolean",
207
+    "comparison": "exact",
208
+    "deviation": null
209
+  },
210
+  {
211
+    "id": "0072-feel-in:dateTime_009_c:dateTime_009_c",
212
+    "expression": "date and time(\"2018-12-08T10:30:03\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
213
+    "expected": true,
214
+    "expected_type": "boolean",
215
+    "comparison": "exact",
216
+    "deviation": null
217
+  },
218
+  {
219
+    "id": "0072-feel-in:dateTime_009_d:dateTime_009_d",
220
+    "expression": "date and time(\"2018-12-08T10:30:04\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
221
+    "expected": false,
222
+    "expected_type": "boolean",
223
+    "comparison": "exact",
224
+    "deviation": null
225
+  },
226
+  {
227
+    "id": "0072-feel-in:dateTime_009_e:dateTime_009_e",
228
+    "expression": "date and time(\"2018-12-08T10:30:05\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\"))",
229
+    "expected": false,
230
+    "expected_type": "boolean",
231
+    "comparison": "exact",
232
+    "deviation": null
233
+  },
234
+  {
235
+    "id": "0072-feel-in:dateTime_010_a:dateTime_010_a",
236
+    "expression": "date and time(\"2018-12-08T10:30:01\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
237
+    "expected": false,
238
+    "expected_type": "boolean",
239
+    "comparison": "exact",
240
+    "deviation": null
241
+  },
242
+  {
243
+    "id": "0072-feel-in:dateTime_010_b:dateTime_010_b",
244
+    "expression": "date and time(\"2018-12-08T10:30:02\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
245
+    "expected": true,
246
+    "expected_type": "boolean",
247
+    "comparison": "exact",
248
+    "deviation": null
249
+  },
250
+  {
251
+    "id": "0072-feel-in:dateTime_010_c:dateTime_010_c",
252
+    "expression": "date and time(\"2018-12-08T10:30:03\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
253
+    "expected": true,
254
+    "expected_type": "boolean",
255
+    "comparison": "exact",
256
+    "deviation": null
257
+  },
258
+  {
259
+    "id": "0072-feel-in:dateTime_010_d:dateTime_010_d",
260
+    "expression": "date and time(\"2018-12-08T10:30:04\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
261
+    "expected": true,
262
+    "expected_type": "boolean",
263
+    "comparison": "exact",
264
+    "deviation": null
265
+  },
266
+  {
267
+    "id": "0072-feel-in:dateTime_010_e:dateTime_010_e",
268
+    "expression": "date and time(\"2018-12-08T10:30:05\") in [date and time(\"2018-12-08T10:30:02\")..date and time(\"2018-12-08T10:30:04\")]",
269
+    "expected": false,
270
+    "expected_type": "boolean",
271
+    "comparison": "exact",
272
+    "deviation": null
273
+  },
274
+  {
275
+    "id": "0072-feel-in:date_003:date_003",
276
+    "expression": "date(\"2018-12-04\") in <= date(\"2018-12-05\")",
277
+    "expected": true,
278
+    "expected_type": "boolean",
279
+    "comparison": "exact",
280
+    "deviation": null
281
+  },
282
+  {
283
+    "id": "0072-feel-in:date_003_1:date_003_1",
284
+    "expression": "date(\"2018-12-04\") in <= date(\"2018-12-04\")",
285
+    "expected": true,
286
+    "expected_type": "boolean",
287
+    "comparison": "exact",
288
+    "deviation": null
289
+  },
290
+  {
291
+    "id": "0072-feel-in:date_003_a:date_003_a",
292
+    "expression": "date(\"2018-12-05\") in <= date(\"2018-12-04\")",
293
+    "expected": false,
294
+    "expected_type": "boolean",
295
+    "comparison": "exact",
296
+    "deviation": null
297
+  },
298
+  {
299
+    "id": "0072-feel-in:date_004:date_004",
300
+    "expression": "date(\"2018-12-01\") in < date(\"2018-12-10\")",
301
+    "expected": true,
302
+    "expected_type": "boolean",
303
+    "comparison": "exact",
304
+    "deviation": null
305
+  },
306
+  {
307
+    "id": "0072-feel-in:date_004_a:date_004_a",
308
+    "expression": "date(\"2018-12-10\") in < date(\"2018-12-10\")",
309
+    "expected": false,
310
+    "expected_type": "boolean",
311
+    "comparison": "exact",
312
+    "deviation": null
313
+  },
314
+  {
315
+    "id": "0072-feel-in:date_005:date_005",
316
+    "expression": "date(\"2018-12-11\") in >= date(\"2018-12-10\")",
317
+    "expected": true,
318
+    "expected_type": "boolean",
319
+    "comparison": "exact",
320
+    "deviation": null
321
+  },
322
+  {
323
+    "id": "0072-feel-in:date_005_1:date_005_1",
324
+    "expression": "date(\"2018-12-10\") in >= date(\"2018-12-10\")",
325
+    "expected": true,
326
+    "expected_type": "boolean",
327
+    "comparison": "exact",
328
+    "deviation": null
329
+  },
330
+  {
331
+    "id": "0072-feel-in:date_005_a:date_005_a",
332
+    "expression": "date(\"2018-12-09\") in >= date(\"2018-12-10\")",
333
+    "expected": false,
334
+    "expected_type": "boolean",
335
+    "comparison": "exact",
336
+    "deviation": null
337
+  },
338
+  {
339
+    "id": "0072-feel-in:date_006:date_006",
340
+    "expression": "date(\"2018-12-11\") in > date(\"2018-12-10\")",
341
+    "expected": true,
342
+    "expected_type": "boolean",
343
+    "comparison": "exact",
344
+    "deviation": null
345
+  },
346
+  {
347
+    "id": "0072-feel-in:date_006_a:date_006_a",
348
+    "expression": "date(\"2018-12-10\") in > date(\"2018-12-10\")",
349
+    "expected": false,
350
+    "expected_type": "boolean",
351
+    "comparison": "exact",
352
+    "deviation": null
353
+  },
354
+  {
355
+    "id": "0072-feel-in:date_007_a:date_007_a",
356
+    "expression": "date(\"2018-12-01\") in (date(\"2018-12-02\")..date(\"2018-12-04\"))",
357
+    "expected": false,
358
+    "expected_type": "boolean",
359
+    "comparison": "exact",
360
+    "deviation": null
361
+  },
362
+  {
363
+    "id": "0072-feel-in:date_007_b:date_007_b",
364
+    "expression": "date(\"2018-12-02\") in (date(\"2018-12-02\")..date(\"2018-12-04\"))",
365
+    "expected": false,
366
+    "expected_type": "boolean",
367
+    "comparison": "exact",
368
+    "deviation": null
369
+  },
370
+  {
371
+    "id": "0072-feel-in:date_007_c:date_007_c",
372
+    "expression": "date(\"2018-12-03\") in (date(\"2018-12-02\")..date(\"2018-12-04\"))",
373
+    "expected": true,
374
+    "expected_type": "boolean",
375
+    "comparison": "exact",
376
+    "deviation": null
377
+  },
378
+  {
379
+    "id": "0072-feel-in:date_007_d:date_007_d",
380
+    "expression": "date(\"2018-12-04\") in (date(\"2018-12-02\")..date(\"2018-12-04\"))",
381
+    "expected": false,
382
+    "expected_type": "boolean",
383
+    "comparison": "exact",
384
+    "deviation": null
385
+  },
386
+  {
387
+    "id": "0072-feel-in:date_007_e:date_007_e",
388
+    "expression": "date(\"2018-12-05\") in (date(\"2018-12-02\")..date(\"2018-12-04\"))",
389
+    "expected": false,
390
+    "expected_type": "boolean",
391
+    "comparison": "exact",
392
+    "deviation": null
393
+  },
394
+  {
395
+    "id": "0072-feel-in:date_008_a:date_008_a",
396
+    "expression": "date(\"2018-12-01\") in (date(\"2018-12-02\")..date(\"2018-12-04\")]",
397
+    "expected": false,
398
+    "expected_type": "boolean",
399
+    "comparison": "exact",
400
+    "deviation": null
401
+  },
402
+  {
403
+    "id": "0072-feel-in:date_008_b:date_008_b",
404
+    "expression": "date(\"2018-12-02\") in (date(\"2018-12-02\")..date(\"2018-12-04\")]",
405
+    "expected": false,
406
+    "expected_type": "boolean",
407
+    "comparison": "exact",
408
+    "deviation": null
409
+  },
410
+  {
411
+    "id": "0072-feel-in:date_008_c:date_008_c",
412
+    "expression": "date(\"2018-12-03\") in (date(\"2018-12-02\")..date(\"2018-12-04\")]",
413
+    "expected": true,
414
+    "expected_type": "boolean",
415
+    "comparison": "exact",
416
+    "deviation": null
417
+  },
418
+  {
419
+    "id": "0072-feel-in:date_008_d:date_008_d",
420
+    "expression": "date(\"2018-12-04\") in (date(\"2018-12-02\")..date(\"2018-12-04\")]",
421
+    "expected": true,
422
+    "expected_type": "boolean",
423
+    "comparison": "exact",
424
+    "deviation": null
425
+  },
426
+  {
427
+    "id": "0072-feel-in:date_008_e:date_008_e",
428
+    "expression": "date(\"2018-12-05\") in (date(\"2018-12-02\")..date(\"2018-12-04\")]",
429
+    "expected": false,
430
+    "expected_type": "boolean",
431
+    "comparison": "exact",
432
+    "deviation": null
433
+  },
434
+  {
435
+    "id": "0072-feel-in:date_009_a:date_009_a",
436
+    "expression": "date(\"2018-12-01\") in [date(\"2018-12-02\")..date(\"2018-12-04\"))",
437
+    "expected": false,
438
+    "expected_type": "boolean",
439
+    "comparison": "exact",
440
+    "deviation": null
441
+  },
442
+  {
443
+    "id": "0072-feel-in:date_009_b:date_009_b",
444
+    "expression": "date(\"2018-12-02\") in [date(\"2018-12-02\")..date(\"2018-12-04\"))",
445
+    "expected": true,
446
+    "expected_type": "boolean",
447
+    "comparison": "exact",
448
+    "deviation": null
449
+  },
450
+  {
451
+    "id": "0072-feel-in:date_009_c:date_009_c",
452
+    "expression": "date(\"2018-12-03\") in [date(\"2018-12-02\")..date(\"2018-12-04\"))",
453
+    "expected": true,
454
+    "expected_type": "boolean",
455
+    "comparison": "exact",
456
+    "deviation": null
457
+  },
458
+  {
459
+    "id": "0072-feel-in:date_009_d:date_009_d",
460
+    "expression": "date(\"2018-12-04\") in [date(\"2018-12-02\")..date(\"2018-12-04\"))",
461
+    "expected": false,
462
+    "expected_type": "boolean",
463
+    "comparison": "exact",
464
+    "deviation": null
465
+  },
466
+  {
467
+    "id": "0072-feel-in:date_009_e:date_009_e",
468
+    "expression": "date(\"2018-12-05\") in [date(\"2018-12-02\")..date(\"2018-12-04\"))",
469
+    "expected": false,
470
+    "expected_type": "boolean",
471
+    "comparison": "exact",
472
+    "deviation": null
473
+  },
474
+  {
475
+    "id": "0072-feel-in:date_010_a:date_010_a",
476
+    "expression": "date(\"2018-12-01\") in [date(\"2018-12-02\")..date(\"2018-12-04\")]",
477
+    "expected": false,
478
+    "expected_type": "boolean",
479
+    "comparison": "exact",
480
+    "deviation": null
481
+  },
482
+  {
483
+    "id": "0072-feel-in:date_010_b:date_010_b",
484
+    "expression": "date(\"2018-12-02\") in [date(\"2018-12-02\")..date(\"2018-12-04\")]",
485
+    "expected": true,
486
+    "expected_type": "boolean",
487
+    "comparison": "exact",
488
+    "deviation": null
489
+  },
490
+  {
491
+    "id": "0072-feel-in:date_010_c:date_010_c",
492
+    "expression": "date(\"2018-12-03\") in [date(\"2018-12-02\")..date(\"2018-12-04\")]",
493
+    "expected": true,
494
+    "expected_type": "boolean",
495
+    "comparison": "exact",
496
+    "deviation": null
497
+  },
498
+  {
499
+    "id": "0072-feel-in:date_010_d:date_010_d",
500
+    "expression": "date(\"2018-12-04\") in [date(\"2018-12-02\")..date(\"2018-12-04\")]",
501
+    "expected": true,
502
+    "expected_type": "boolean",
503
+    "comparison": "exact",
504
+    "deviation": null
505
+  },
506
+  {
507
+    "id": "0072-feel-in:date_010_e:date_010_e",
508
+    "expression": "date(\"2018-12-05\") in [date(\"2018-12-02\")..date(\"2018-12-04\")]",
509
+    "expected": false,
510
+    "expected_type": "boolean",
511
+    "comparison": "exact",
512
+    "deviation": null
513
+  },
514
+  {
515
+    "id": "0072-feel-in:date_015_a:date_015_a",
516
+    "expression": "@\"2018-12-05\" in =@\"2018-12-05\"",
517
+    "expected": true,
518
+    "expected_type": "boolean",
519
+    "comparison": "exact",
520
+    "deviation": null
521
+  },
522
+  {
523
+    "id": "0072-feel-in:date_015_c:date_015_c",
524
+    "expression": "@\"2018-12-05\" in =@\"2018-12-06\"",
525
+    "expected": false,
526
+    "expected_type": "boolean",
527
+    "comparison": "exact",
528
+    "deviation": null
529
+  },
530
+  {
531
+    "id": "0072-feel-in:date_016_a:date_016_a",
532
+    "expression": "@\"2018-12-05\" in !=@\"2018-12-05\"",
533
+    "expected": false,
534
+    "expected_type": "boolean",
535
+    "comparison": "exact",
536
+    "deviation": null
537
+  },
538
+  {
539
+    "id": "0072-feel-in:date_016_c:date_016_c",
540
+    "expression": "@\"2018-12-05\" in !=@\"2018-12-06\"",
541
+    "expected": true,
542
+    "expected_type": "boolean",
543
+    "comparison": "exact",
544
+    "deviation": null
545
+  },
546
+  {
547
+    "id": "0072-feel-in:datetime_015_a:datetime_015_a",
548
+    "expression": "@\"2018-12-08T10:30:05\" in =@\"2018-12-08T10:30:05\"",
549
+    "expected": true,
550
+    "expected_type": "boolean",
551
+    "comparison": "exact",
552
+    "deviation": null
553
+  },
554
+  {
555
+    "id": "0072-feel-in:datetime_015_c:datetime_015_c",
556
+    "expression": "@\"2018-12-08T10:30:05\" in =@\"2018-12-08T10:30:06\"",
557
+    "expected": false,
558
+    "expected_type": "boolean",
559
+    "comparison": "exact",
560
+    "deviation": null
561
+  },
562
+  {
563
+    "id": "0072-feel-in:datetime_016_a:datetime_016_a",
564
+    "expression": "@\"2018-12-08T10:30:05\" in !=@\"2018-12-08T10:30:05\"",
565
+    "expected": false,
566
+    "expected_type": "boolean",
567
+    "comparison": "exact",
568
+    "deviation": null
569
+  },
570
+  {
571
+    "id": "0072-feel-in:datetime_016_c:datetime_016_c",
572
+    "expression": "@\"2018-12-08T10:30:05\" in !=@\"2018-12-08T10:30:06\"",
573
+    "expected": true,
574
+    "expected_type": "boolean",
575
+    "comparison": "exact",
576
+    "deviation": null
577
+  },
578
+  {
579
+    "id": "0072-feel-in:dt_duration_003:dt_duration_003",
580
+    "expression": "duration(\"P4D\") in <= duration(\"P5D\")",
581
+    "expected": true,
582
+    "expected_type": "boolean",
583
+    "comparison": "exact",
584
+    "deviation": null
585
+  },
586
+  {
587
+    "id": "0072-feel-in:dt_duration_003_1:dt_duration_003_1",
588
+    "expression": "duration(\"P4D\") in <= duration(\"P4D\")",
589
+    "expected": true,
590
+    "expected_type": "boolean",
591
+    "comparison": "exact",
592
+    "deviation": null
593
+  },
594
+  {
595
+    "id": "0072-feel-in:dt_duration_003_a:dt_duration_003_a",
596
+    "expression": "duration(\"P5D\") in <= duration(\"P4D\")",
597
+    "expected": false,
598
+    "expected_type": "boolean",
599
+    "comparison": "exact",
600
+    "deviation": null
601
+  },
602
+  {
603
+    "id": "0072-feel-in:dt_duration_004:dt_duration_004",
604
+    "expression": "duration(\"P1D\") in < duration(\"P10D\")",
605
+    "expected": true,
606
+    "expected_type": "boolean",
607
+    "comparison": "exact",
608
+    "deviation": null
609
+  },
610
+  {
611
+    "id": "0072-feel-in:dt_duration_004_a:dt_duration_004_a",
612
+    "expression": "duration(\"P10D\") in < duration(\"P10D\")",
613
+    "expected": false,
614
+    "expected_type": "boolean",
615
+    "comparison": "exact",
616
+    "deviation": null
617
+  },
618
+  {
619
+    "id": "0072-feel-in:dt_duration_005:dt_duration_005",
620
+    "expression": "duration(\"P11D\") in >= duration(\"P10D\")",
621
+    "expected": true,
622
+    "expected_type": "boolean",
623
+    "comparison": "exact",
624
+    "deviation": null
625
+  },
626
+  {
627
+    "id": "0072-feel-in:dt_duration_005_1:dt_duration_005_1",
628
+    "expression": "duration(\"P10D\") in >= duration(\"P10D\")",
629
+    "expected": true,
630
+    "expected_type": "boolean",
631
+    "comparison": "exact",
632
+    "deviation": null
633
+  },
634
+  {
635
+    "id": "0072-feel-in:dt_duration_005_a:dt_duration_005_a",
636
+    "expression": "duration(\"P9D\") in >= duration(\"P10D\")",
637
+    "expected": false,
638
+    "expected_type": "boolean",
639
+    "comparison": "exact",
640
+    "deviation": null
641
+  },
642
+  {
643
+    "id": "0072-feel-in:dt_duration_006:dt_duration_006",
644
+    "expression": "duration(\"P11D\") in > duration(\"P10D\")",
645
+    "expected": true,
646
+    "expected_type": "boolean",
647
+    "comparison": "exact",
648
+    "deviation": null
649
+  },
650
+  {
651
+    "id": "0072-feel-in:dt_duration_006_a:dt_duration_006_a",
652
+    "expression": "duration(\"P10D\") in > duration(\"P10D\")",
653
+    "expected": false,
654
+    "expected_type": "boolean",
655
+    "comparison": "exact",
656
+    "deviation": null
657
+  },
658
+  {
659
+    "id": "0072-feel-in:dt_duration_007_a:dt_duration_007_a",
660
+    "expression": "duration(\"P1D\") in (duration(\"P2D\")..duration(\"P4D\"))",
661
+    "expected": false,
662
+    "expected_type": "boolean",
663
+    "comparison": "exact",
664
+    "deviation": null
665
+  },
666
+  {
667
+    "id": "0072-feel-in:dt_duration_007_b:dt_duration_007_b",
668
+    "expression": "duration(\"P2D\") in (duration(\"P2D\")..duration(\"P4D\"))",
669
+    "expected": false,
670
+    "expected_type": "boolean",
671
+    "comparison": "exact",
672
+    "deviation": null
673
+  },
674
+  {
675
+    "id": "0072-feel-in:dt_duration_007_c:dt_duration_007_c",
676
+    "expression": "duration(\"P3D\") in (duration(\"P2D\")..duration(\"P4D\"))",
677
+    "expected": true,
678
+    "expected_type": "boolean",
679
+    "comparison": "exact",
680
+    "deviation": null
681
+  },
682
+  {
683
+    "id": "0072-feel-in:dt_duration_007_d:dt_duration_007_d",
684
+    "expression": "duration(\"P4D\") in (duration(\"P2D\")..duration(\"P4D\"))",
685
+    "expected": false,
686
+    "expected_type": "boolean",
687
+    "comparison": "exact",
688
+    "deviation": null
689
+  },
690
+  {
691
+    "id": "0072-feel-in:dt_duration_007_e:dt_duration_007_e",
692
+    "expression": "duration(\"P5D\") in (duration(\"P2D\")..duration(\"P4D\"))",
693
+    "expected": false,
694
+    "expected_type": "boolean",
695
+    "comparison": "exact",
696
+    "deviation": null
697
+  },
698
+  {
699
+    "id": "0072-feel-in:dt_duration_008_a:dt_duration_008_a",
700
+    "expression": "duration(\"P1D\") in (duration(\"P2D\")..duration(\"P4D\")]",
701
+    "expected": false,
702
+    "expected_type": "boolean",
703
+    "comparison": "exact",
704
+    "deviation": null
705
+  },
706
+  {
707
+    "id": "0072-feel-in:dt_duration_008_b:dt_duration_008_b",
708
+    "expression": "duration(\"P2D\") in (duration(\"P2D\")..duration(\"P4D\")]",
709
+    "expected": false,
710
+    "expected_type": "boolean",
711
+    "comparison": "exact",
712
+    "deviation": null
713
+  },
714
+  {
715
+    "id": "0072-feel-in:dt_duration_008_c:dt_duration_008_c",
716
+    "expression": "duration(\"P3D\") in (duration(\"P2D\")..duration(\"P4D\")]",
717
+    "expected": true,
718
+    "expected_type": "boolean",
719
+    "comparison": "exact",
720
+    "deviation": null
721
+  },
722
+  {
723
+    "id": "0072-feel-in:dt_duration_008_d:dt_duration_008_d",
724
+    "expression": "duration(\"P4D\") in (duration(\"P2D\")..duration(\"P4D\")]",
725
+    "expected": true,
726
+    "expected_type": "boolean",
727
+    "comparison": "exact",
728
+    "deviation": null
729
+  },
730
+  {
731
+    "id": "0072-feel-in:dt_duration_008_e:dt_duration_008_e",
732
+    "expression": "duration(\"P5D\") in (duration(\"P2D\")..duration(\"P4D\")]",
733
+    "expected": false,
734
+    "expected_type": "boolean",
735
+    "comparison": "exact",
736
+    "deviation": null
737
+  },
738
+  {
739
+    "id": "0072-feel-in:dt_duration_009_a:dt_duration_009_a",
740
+    "expression": "duration(\"P1D\") in [duration(\"P2D\")..duration(\"P4D\"))",
741
+    "expected": false,
742
+    "expected_type": "boolean",
743
+    "comparison": "exact",
744
+    "deviation": null
745
+  },
746
+  {
747
+    "id": "0072-feel-in:dt_duration_009_b:dt_duration_009_b",
748
+    "expression": "duration(\"P2D\") in [duration(\"P2D\")..duration(\"P4D\"))",
749
+    "expected": true,
750
+    "expected_type": "boolean",
751
+    "comparison": "exact",
752
+    "deviation": null
753
+  },
754
+  {
755
+    "id": "0072-feel-in:dt_duration_009_c:dt_duration_009_c",
756
+    "expression": "duration(\"P3D\") in [duration(\"P2D\")..duration(\"P4D\"))",
757
+    "expected": true,
758
+    "expected_type": "boolean",
759
+    "comparison": "exact",
760
+    "deviation": null
761
+  },
762
+  {
763
+    "id": "0072-feel-in:dt_duration_009_d:dt_duration_009_d",
764
+    "expression": "duration(\"P4D\") in [duration(\"P2D\")..duration(\"P4D\"))",
765
+    "expected": false,
766
+    "expected_type": "boolean",
767
+    "comparison": "exact",
768
+    "deviation": null
769
+  },
770
+  {
771
+    "id": "0072-feel-in:dt_duration_009_e:dt_duration_009_e",
772
+    "expression": "duration(\"P5D\") in [duration(\"P2D\")..duration(\"P4D\"))",
773
+    "expected": false,
774
+    "expected_type": "boolean",
775
+    "comparison": "exact",
776
+    "deviation": null
777
+  },
778
+  {
779
+    "id": "0072-feel-in:dt_duration_010_a:dt_duration_010_a",
780
+    "expression": "duration(\"P1D\") in [duration(\"P2D\")..duration(\"P4D\")]",
781
+    "expected": false,
782
+    "expected_type": "boolean",
783
+    "comparison": "exact",
784
+    "deviation": null
785
+  },
786
+  {
787
+    "id": "0072-feel-in:dt_duration_010_b:dt_duration_010_b",
788
+    "expression": "duration(\"P2D\") in [duration(\"P2D\")..duration(\"P4D\")]",
789
+    "expected": true,
790
+    "expected_type": "boolean",
791
+    "comparison": "exact",
792
+    "deviation": null
793
+  },
794
+  {
795
+    "id": "0072-feel-in:dt_duration_010_c:dt_duration_010_c",
796
+    "expression": "duration(\"P3D\") in [duration(\"P2D\")..duration(\"P4D\")]",
797
+    "expected": true,
798
+    "expected_type": "boolean",
799
+    "comparison": "exact",
800
+    "deviation": null
801
+  },
802
+  {
803
+    "id": "0072-feel-in:dt_duration_010_d:dt_duration_010_d",
804
+    "expression": "duration(\"P4D\") in [duration(\"P2D\")..duration(\"P4D\")]",
805
+    "expected": true,
806
+    "expected_type": "boolean",
807
+    "comparison": "exact",
808
+    "deviation": null
809
+  },
810
+  {
811
+    "id": "0072-feel-in:dt_duration_010_e:dt_duration_010_e",
812
+    "expression": "duration(\"P5D\") in [duration(\"P2D\")..duration(\"P4D\")]",
813
+    "expected": false,
814
+    "expected_type": "boolean",
815
+    "comparison": "exact",
816
+    "deviation": null
817
+  },
818
+  {
819
+    "id": "0072-feel-in:dt_duration_015_a:dt_duration_015_a",
820
+    "expression": "@\"P5D\" in =@\"P5D\"",
821
+    "expected": true,
822
+    "expected_type": "boolean",
823
+    "comparison": "exact",
824
+    "deviation": null
825
+  },
826
+  {
827
+    "id": "0072-feel-in:dt_duration_015_c:dt_duration_015_c",
828
+    "expression": "@\"P5D\" in =@\"P6D\"",
829
+    "expected": false,
830
+    "expected_type": "boolean",
831
+    "comparison": "exact",
832
+    "deviation": null
833
+  },
834
+  {
835
+    "id": "0072-feel-in:dt_duration_016_a:dt_duration_016_a",
836
+    "expression": "@\"P5D\" in !=@\"P5D\"",
837
+    "expected": false,
838
+    "expected_type": "boolean",
839
+    "comparison": "exact",
840
+    "deviation": null
841
+  },
842
+  {
843
+    "id": "0072-feel-in:dt_duration_016_c:dt_duration_016_c",
844
+    "expression": "@\"P5D\" in !=@\"P6D\"",
845
+    "expected": true,
846
+    "expected_type": "boolean",
847
+    "comparison": "exact",
848
+    "deviation": null
849
+  },
850
+  {
851
+    "id": "0072-feel-in:list_015_a:list_015_a",
852
+    "expression": "[1,2,3] in =[1,2,3]",
853
+    "expected": true,
854
+    "expected_type": "boolean",
855
+    "comparison": "exact",
856
+    "deviation": null
857
+  },
858
+  {
859
+    "id": "0072-feel-in:list_015_c:list_015_c",
860
+    "expression": "[1,2,3] in =[1,2,3,4]",
861
+    "expected": false,
862
+    "expected_type": "boolean",
863
+    "comparison": "exact",
864
+    "deviation": null
865
+  },
866
+  {
867
+    "id": "0072-feel-in:list_016_a:list_016_a",
868
+    "expression": "[1,2,3] in !=[1,2,3]",
869
+    "expected": false,
870
+    "expected_type": "boolean",
871
+    "comparison": "exact",
872
+    "deviation": null
873
+  },
874
+  {
875
+    "id": "0072-feel-in:list_016_c:list_016_c",
876
+    "expression": "[1,2,3] in !=[1,2,3,4]",
877
+    "expected": true,
878
+    "expected_type": "boolean",
879
+    "comparison": "exact",
880
+    "deviation": null
881
+  },
2882
   {
3883
     "id": "0072-feel-in:null_001:null_001",
4884
     "expression": "null in [1..10]",
@@ -40,6 +920,86 @@
40920
     "deviation": null
41921
   },
42922
   {
923
+    "id": "0072-feel-in:number_003:number_003",
924
+    "expression": "1 in <= 10",
925
+    "expected": true,
926
+    "expected_type": "boolean",
927
+    "comparison": "exact",
928
+    "deviation": null
929
+  },
930
+  {
931
+    "id": "0072-feel-in:number_003_1:number_003_1",
932
+    "expression": "10 in <= 10",
933
+    "expected": true,
934
+    "expected_type": "boolean",
935
+    "comparison": "exact",
936
+    "deviation": null
937
+  },
938
+  {
939
+    "id": "0072-feel-in:number_003_a:number_003_a",
940
+    "expression": "11 in <= 10",
941
+    "expected": false,
942
+    "expected_type": "boolean",
943
+    "comparison": "exact",
944
+    "deviation": null
945
+  },
946
+  {
947
+    "id": "0072-feel-in:number_004:number_004",
948
+    "expression": "1 in < 10",
949
+    "expected": true,
950
+    "expected_type": "boolean",
951
+    "comparison": "exact",
952
+    "deviation": null
953
+  },
954
+  {
955
+    "id": "0072-feel-in:number_004_a:number_004_a",
956
+    "expression": "10 in < 10",
957
+    "expected": false,
958
+    "expected_type": "boolean",
959
+    "comparison": "exact",
960
+    "deviation": null
961
+  },
962
+  {
963
+    "id": "0072-feel-in:number_005:number_005",
964
+    "expression": "11 in >= 10",
965
+    "expected": true,
966
+    "expected_type": "boolean",
967
+    "comparison": "exact",
968
+    "deviation": null
969
+  },
970
+  {
971
+    "id": "0072-feel-in:number_005_1:number_005_1",
972
+    "expression": "10 in >= 10",
973
+    "expected": true,
974
+    "expected_type": "boolean",
975
+    "comparison": "exact",
976
+    "deviation": null
977
+  },
978
+  {
979
+    "id": "0072-feel-in:number_005_a:number_005_a",
980
+    "expression": "9 in >= 10",
981
+    "expected": false,
982
+    "expected_type": "boolean",
983
+    "comparison": "exact",
984
+    "deviation": null
985
+  },
986
+  {
987
+    "id": "0072-feel-in:number_006:number_006",
988
+    "expression": "11 in > 10",
989
+    "expected": true,
990
+    "expected_type": "boolean",
991
+    "comparison": "exact",
992
+    "deviation": null
993
+  },
994
+  {
995
+    "id": "0072-feel-in:number_006_a:number_006_a",
996
+    "expression": "10 in > 10",
997
+    "expected": false,
998
+    "expected_type": "boolean",
999
+    "comparison": "exact",
1000
+    "deviation": null
1001
+  },
1002
+  {
431003
     "id": "0072-feel-in:number_007_a:number_007_a",
441004
     "expression": "1 in (2..4)",
451005
     "expected": false,
@@ -200,6 +1160,118 @@
2001160
     "deviation": null
2011161
   },
2021162
   {
1163
+    "id": "0072-feel-in:number_015_a:number_015_a",
1164
+    "expression": "10 in =10",
1165
+    "expected": true,
1166
+    "expected_type": "boolean",
1167
+    "comparison": "exact",
1168
+    "deviation": null
1169
+  },
1170
+  {
1171
+    "id": "0072-feel-in:number_015_c:number_015_c",
1172
+    "expression": "10 in =11",
1173
+    "expected": false,
1174
+    "expected_type": "boolean",
1175
+    "comparison": "exact",
1176
+    "deviation": null
1177
+  },
1178
+  {
1179
+    "id": "0072-feel-in:number_016_a:number_016_a",
1180
+    "expression": "10 in !=10",
1181
+    "expected": false,
1182
+    "expected_type": "boolean",
1183
+    "comparison": "exact",
1184
+    "deviation": null
1185
+  },
1186
+  {
1187
+    "id": "0072-feel-in:number_016_c:number_016_c",
1188
+    "expression": "10 in !=11",
1189
+    "expected": true,
1190
+    "expected_type": "boolean",
1191
+    "comparison": "exact",
1192
+    "deviation": null
1193
+  },
1194
+  {
1195
+    "id": "0072-feel-in:string_003:string_003",
1196
+    "expression": "\"a\" in <= \"b\"",
1197
+    "expected": true,
1198
+    "expected_type": "boolean",
1199
+    "comparison": "exact",
1200
+    "deviation": null
1201
+  },
1202
+  {
1203
+    "id": "0072-feel-in:string_003_1:string_003_1",
1204
+    "expression": "\"b\" in <= \"b\"",
1205
+    "expected": true,
1206
+    "expected_type": "boolean",
1207
+    "comparison": "exact",
1208
+    "deviation": null
1209
+  },
1210
+  {
1211
+    "id": "0072-feel-in:string_003_a:string_003_a",
1212
+    "expression": "\"c\" in <= \"b\"",
1213
+    "expected": false,
1214
+    "expected_type": "boolean",
1215
+    "comparison": "exact",
1216
+    "deviation": null
1217
+  },
1218
+  {
1219
+    "id": "0072-feel-in:string_004:string_004",
1220
+    "expression": "\"a\" in < \"b\"",
1221
+    "expected": true,
1222
+    "expected_type": "boolean",
1223
+    "comparison": "exact",
1224
+    "deviation": null
1225
+  },
1226
+  {
1227
+    "id": "0072-feel-in:string_004_a:string_004_a",
1228
+    "expression": "\"b\" in < \"b\"",
1229
+    "expected": false,
1230
+    "expected_type": "boolean",
1231
+    "comparison": "exact",
1232
+    "deviation": null
1233
+  },
1234
+  {
1235
+    "id": "0072-feel-in:string_005:string_005",
1236
+    "expression": "\"b\" in >= \"a\"",
1237
+    "expected": true,
1238
+    "expected_type": "boolean",
1239
+    "comparison": "exact",
1240
+    "deviation": null
1241
+  },
1242
+  {
1243
+    "id": "0072-feel-in:string_005_1:string_005_1",
1244
+    "expression": "\"b\" in >= \"b\"",
1245
+    "expected": true,
1246
+    "expected_type": "boolean",
1247
+    "comparison": "exact",
1248
+    "deviation": null
1249
+  },
1250
+  {
1251
+    "id": "0072-feel-in:string_005_a:string_005_a",
1252
+    "expression": "\"a\" in >= \"b\"",
1253
+    "expected": false,
1254
+    "expected_type": "boolean",
1255
+    "comparison": "exact",
1256
+    "deviation": null
1257
+  },
1258
+  {
1259
+    "id": "0072-feel-in:string_006:string_006",
1260
+    "expression": "\"b\" in > \"a\"",
1261
+    "expected": true,
1262
+    "expected_type": "boolean",
1263
+    "comparison": "exact",
1264
+    "deviation": null
1265
+  },
1266
+  {
1267
+    "id": "0072-feel-in:string_006_a:string_006_a",
1268
+    "expression": "\"b\" in > \"b\"",
1269
+    "expected": false,
1270
+    "expected_type": "boolean",
1271
+    "comparison": "exact",
1272
+    "deviation": null
1273
+  },
1274
+  {
2031275
     "id": "0072-feel-in:string_007_a:string_007_a",
2041276
     "expression": "\"a\" in (\"b\"..\"d\")",
2051277
     "expected": false,
@@ -358,5 +1430,549 @@
3581430
     "expected_type": "boolean",
3591431
     "comparison": "exact",
3601432
     "deviation": null
1433
+  },
1434
+  {
1435
+    "id": "0072-feel-in:string_015_a:string_015_a",
1436
+    "expression": "\"a\" in =\"a\"",
1437
+    "expected": true,
1438
+    "expected_type": "boolean",
1439
+    "comparison": "exact",
1440
+    "deviation": null
1441
+  },
1442
+  {
1443
+    "id": "0072-feel-in:string_015_c:string_015_c",
1444
+    "expression": "\"a\" in =\"b\"",
1445
+    "expected": false,
1446
+    "expected_type": "boolean",
1447
+    "comparison": "exact",
1448
+    "deviation": null
1449
+  },
1450
+  {
1451
+    "id": "0072-feel-in:string_016_a:string_016_a",
1452
+    "expression": "\"a\" in !=\"a\"",
1453
+    "expected": false,
1454
+    "expected_type": "boolean",
1455
+    "comparison": "exact",
1456
+    "deviation": null
1457
+  },
1458
+  {
1459
+    "id": "0072-feel-in:string_016_c:string_016_c",
1460
+    "expression": "\"a\" in !=\"b\"",
1461
+    "expected": true,
1462
+    "expected_type": "boolean",
1463
+    "comparison": "exact",
1464
+    "deviation": null
1465
+  },
1466
+  {
1467
+    "id": "0072-feel-in:time_003:time_003",
1468
+    "expression": "time(\"10:30:04\") in <= time(\"10:30:05\")",
1469
+    "expected": true,
1470
+    "expected_type": "boolean",
1471
+    "comparison": "exact",
1472
+    "deviation": null
1473
+  },
1474
+  {
1475
+    "id": "0072-feel-in:time_003_1:time_003_1",
1476
+    "expression": "time(\"10:30:04\") in <= time(\"10:30:04\")",
1477
+    "expected": true,
1478
+    "expected_type": "boolean",
1479
+    "comparison": "exact",
1480
+    "deviation": null
1481
+  },
1482
+  {
1483
+    "id": "0072-feel-in:time_003_a:time_003_a",
1484
+    "expression": "time(\"10:30:05\") in <= time(\"10:30:04\")",
1485
+    "expected": false,
1486
+    "expected_type": "boolean",
1487
+    "comparison": "exact",
1488
+    "deviation": null
1489
+  },
1490
+  {
1491
+    "id": "0072-feel-in:time_004:time_004",
1492
+    "expression": "time(\"10:30:01\") in < time(\"10:30:10\")",
1493
+    "expected": true,
1494
+    "expected_type": "boolean",
1495
+    "comparison": "exact",
1496
+    "deviation": null
1497
+  },
1498
+  {
1499
+    "id": "0072-feel-in:time_004_a:time_004_a",
1500
+    "expression": "time(\"10:30:10\") in < time(\"10:30:10\")",
1501
+    "expected": false,
1502
+    "expected_type": "boolean",
1503
+    "comparison": "exact",
1504
+    "deviation": null
1505
+  },
1506
+  {
1507
+    "id": "0072-feel-in:time_005:time_005",
1508
+    "expression": "time(\"10:30:11\") in >= time(\"10:30:10\")",
1509
+    "expected": true,
1510
+    "expected_type": "boolean",
1511
+    "comparison": "exact",
1512
+    "deviation": null
1513
+  },
1514
+  {
1515
+    "id": "0072-feel-in:time_005_1:time_005_1",
1516
+    "expression": "time(\"10:30:10\") in >= time(\"10:30:10\")",
1517
+    "expected": true,
1518
+    "expected_type": "boolean",
1519
+    "comparison": "exact",
1520
+    "deviation": null
1521
+  },
1522
+  {
1523
+    "id": "0072-feel-in:time_005_a:time_005_a",
1524
+    "expression": "time(\"10:30:09\") in >= time(\"10:30:10\")",
1525
+    "expected": false,
1526
+    "expected_type": "boolean",
1527
+    "comparison": "exact",
1528
+    "deviation": null
1529
+  },
1530
+  {
1531
+    "id": "0072-feel-in:time_006:time_006",
1532
+    "expression": "time(\"10:30:11\") in > time(\"10:30:10\")",
1533
+    "expected": true,
1534
+    "expected_type": "boolean",
1535
+    "comparison": "exact",
1536
+    "deviation": null
1537
+  },
1538
+  {
1539
+    "id": "0072-feel-in:time_006_a:time_006_a",
1540
+    "expression": "time(\"10:30:10\") in > time(\"10:30:10\")",
1541
+    "expected": false,
1542
+    "expected_type": "boolean",
1543
+    "comparison": "exact",
1544
+    "deviation": null
1545
+  },
1546
+  {
1547
+    "id": "0072-feel-in:time_007_a:time_007_a",
1548
+    "expression": "time(\"10:30:01\") in (time(\"10:30:02\")..time(\"10:30:04\"))",
1549
+    "expected": false,
1550
+    "expected_type": "boolean",
1551
+    "comparison": "exact",
1552
+    "deviation": null
1553
+  },
1554
+  {
1555
+    "id": "0072-feel-in:time_007_b:time_007_b",
1556
+    "expression": "time(\"10:30:02\") in (time(\"10:30:02\")..time(\"10:30:04\"))",
1557
+    "expected": false,
1558
+    "expected_type": "boolean",
1559
+    "comparison": "exact",
1560
+    "deviation": null
1561
+  },
1562
+  {
1563
+    "id": "0072-feel-in:time_007_c:time_007_c",
1564
+    "expression": "time(\"10:30:03\") in (time(\"10:30:02\")..time(\"10:30:04\"))",
1565
+    "expected": true,
1566
+    "expected_type": "boolean",
1567
+    "comparison": "exact",
1568
+    "deviation": null
1569
+  },
1570
+  {
1571
+    "id": "0072-feel-in:time_007_d:time_007_d",
1572
+    "expression": "time(\"10:30:04\") in (time(\"10:30:02\")..time(\"10:30:04\"))",
1573
+    "expected": false,
1574
+    "expected_type": "boolean",
1575
+    "comparison": "exact",
1576
+    "deviation": null
1577
+  },
1578
+  {
1579
+    "id": "0072-feel-in:time_007_e:time_007_e",
1580
+    "expression": "time(\"10:30:05\") in (time(\"10:30:02\")..time(\"10:30:04\"))",
1581
+    "expected": false,
1582
+    "expected_type": "boolean",
1583
+    "comparison": "exact",
1584
+    "deviation": null
1585
+  },
1586
+  {
1587
+    "id": "0072-feel-in:time_008_a:time_008_a",
1588
+    "expression": "time(\"10:30:01\") in (time(\"10:30:02\")..time(\"10:30:04\")]",
1589
+    "expected": false,
1590
+    "expected_type": "boolean",
1591
+    "comparison": "exact",
1592
+    "deviation": null
1593
+  },
1594
+  {
1595
+    "id": "0072-feel-in:time_008_b:time_008_b",
1596
+    "expression": "time(\"10:30:02\") in (time(\"10:30:02\")..time(\"10:30:04\")]",
1597
+    "expected": false,
1598
+    "expected_type": "boolean",
1599
+    "comparison": "exact",
1600
+    "deviation": null
1601
+  },
1602
+  {
1603
+    "id": "0072-feel-in:time_008_c:time_008_c",
1604
+    "expression": "time(\"10:30:03\") in (time(\"10:30:02\")..time(\"10:30:04\")]",
1605
+    "expected": true,
1606
+    "expected_type": "boolean",
1607
+    "comparison": "exact",
1608
+    "deviation": null
1609
+  },
1610
+  {
1611
+    "id": "0072-feel-in:time_008_d:time_008_d",
1612
+    "expression": "time(\"10:30:04\") in (time(\"10:30:02\")..time(\"10:30:04\")]",
1613
+    "expected": true,
1614
+    "expected_type": "boolean",
1615
+    "comparison": "exact",
1616
+    "deviation": null
1617
+  },
1618
+  {
1619
+    "id": "0072-feel-in:time_008_e:time_008_e",
1620
+    "expression": "time(\"10:30:05\") in (time(\"10:30:02\")..time(\"10:30:04\")]",
1621
+    "expected": false,
1622
+    "expected_type": "boolean",
1623
+    "comparison": "exact",
1624
+    "deviation": null
1625
+  },
1626
+  {
1627
+    "id": "0072-feel-in:time_009_a:time_009_a",
1628
+    "expression": "time(\"10:30:01\") in [time(\"10:30:02\")..time(\"10:30:04\"))",
1629
+    "expected": false,
1630
+    "expected_type": "boolean",
1631
+    "comparison": "exact",
1632
+    "deviation": null
1633
+  },
1634
+  {
1635
+    "id": "0072-feel-in:time_009_b:time_009_b",
1636
+    "expression": "time(\"10:30:02\") in [time(\"10:30:02\")..time(\"10:30:04\"))",
1637
+    "expected": true,
1638
+    "expected_type": "boolean",
1639
+    "comparison": "exact",
1640
+    "deviation": null
1641
+  },
1642
+  {
1643
+    "id": "0072-feel-in:time_009_c:time_009_c",
1644
+    "expression": "time(\"10:30:03\") in [time(\"10:30:02\")..time(\"10:30:04\"))",
1645
+    "expected": true,
1646
+    "expected_type": "boolean",
1647
+    "comparison": "exact",
1648
+    "deviation": null
1649
+  },
1650
+  {
1651
+    "id": "0072-feel-in:time_009_d:time_009_d",
1652
+    "expression": "time(\"10:30:04\") in [time(\"10:30:02\")..time(\"10:30:04\"))",
1653
+    "expected": false,
1654
+    "expected_type": "boolean",
1655
+    "comparison": "exact",
1656
+    "deviation": null
1657
+  },
1658
+  {
1659
+    "id": "0072-feel-in:time_009_e:time_009_e",
1660
+    "expression": "time(\"10:30:05\") in [time(\"10:30:02\")..time(\"10:30:04\"))",
1661
+    "expected": false,
1662
+    "expected_type": "boolean",
1663
+    "comparison": "exact",
1664
+    "deviation": null
1665
+  },
1666
+  {
1667
+    "id": "0072-feel-in:time_010_a:time_010_a",
1668
+    "expression": "time(\"10:30:01\") in [time(\"10:30:02\")..time(\"10:30:04\")]",
1669
+    "expected": false,
1670
+    "expected_type": "boolean",
1671
+    "comparison": "exact",
1672
+    "deviation": null
1673
+  },
1674
+  {
1675
+    "id": "0072-feel-in:time_010_b:time_010_b",
1676
+    "expression": "time(\"10:30:02\") in [time(\"10:30:02\")..time(\"10:30:04\")]",
1677
+    "expected": true,
1678
+    "expected_type": "boolean",
1679
+    "comparison": "exact",
1680
+    "deviation": null
1681
+  },
1682
+  {
1683
+    "id": "0072-feel-in:time_010_c:time_010_c",
1684
+    "expression": "time(\"10:30:03\") in [time(\"10:30:02\")..time(\"10:30:04\")]",
1685
+    "expected": true,
1686
+    "expected_type": "boolean",
1687
+    "comparison": "exact",
1688
+    "deviation": null
1689
+  },
1690
+  {
1691
+    "id": "0072-feel-in:time_010_d:time_010_d",
1692
+    "expression": "time(\"10:30:04\") in [time(\"10:30:02\")..time(\"10:30:04\")]",
1693
+    "expected": true,
1694
+    "expected_type": "boolean",
1695
+    "comparison": "exact",
1696
+    "deviation": null
1697
+  },
1698
+  {
1699
+    "id": "0072-feel-in:time_010_e:time_010_e",
1700
+    "expression": "time(\"10:30:05\") in [time(\"10:30:02\")..time(\"10:30:04\")]",
1701
+    "expected": false,
1702
+    "expected_type": "boolean",
1703
+    "comparison": "exact",
1704
+    "deviation": null
1705
+  },
1706
+  {
1707
+    "id": "0072-feel-in:time_015_a:time_015_a",
1708
+    "expression": "@\"10:30:05\" in =@\"10:30:05\"",
1709
+    "expected": true,
1710
+    "expected_type": "boolean",
1711
+    "comparison": "exact",
1712
+    "deviation": null
1713
+  },
1714
+  {
1715
+    "id": "0072-feel-in:time_015_c:time_015_c",
1716
+    "expression": "@\"10:30:05\" in =@\"10:30:06\"",
1717
+    "expected": false,
1718
+    "expected_type": "boolean",
1719
+    "comparison": "exact",
1720
+    "deviation": null
1721
+  },
1722
+  {
1723
+    "id": "0072-feel-in:time_016_a:time_016_a",
1724
+    "expression": "@\"10:30:05\" in !=@\"10:30:05\"",
1725
+    "expected": false,
1726
+    "expected_type": "boolean",
1727
+    "comparison": "exact",
1728
+    "deviation": null
1729
+  },
1730
+  {
1731
+    "id": "0072-feel-in:time_016_c:time_016_c",
1732
+    "expression": "@\"10:30:05\" in !=@\"10:30:06\"",
1733
+    "expected": true,
1734
+    "expected_type": "boolean",
1735
+    "comparison": "exact",
1736
+    "deviation": null
1737
+  },
1738
+  {
1739
+    "id": "0072-feel-in:ym_duration_003:ym_duration_003",
1740
+    "expression": "duration(\"P4Y\") in <= duration(\"P5Y\")",
1741
+    "expected": true,
1742
+    "expected_type": "boolean",
1743
+    "comparison": "exact",
1744
+    "deviation": null
1745
+  },
1746
+  {
1747
+    "id": "0072-feel-in:ym_duration_003_1:ym_duration_003_1",
1748
+    "expression": "duration(\"P4Y\") in <= duration(\"P4Y\")",
1749
+    "expected": true,
1750
+    "expected_type": "boolean",
1751
+    "comparison": "exact",
1752
+    "deviation": null
1753
+  },
1754
+  {
1755
+    "id": "0072-feel-in:ym_duration_003_a:ym_duration_003_a",
1756
+    "expression": "duration(\"P5Y\") in <= duration(\"P4Y\")",
1757
+    "expected": false,
1758
+    "expected_type": "boolean",
1759
+    "comparison": "exact",
1760
+    "deviation": null
1761
+  },
1762
+  {
1763
+    "id": "0072-feel-in:ym_duration_004:ym_duration_004",
1764
+    "expression": "duration(\"P1Y\") in < duration(\"P10Y\")",
1765
+    "expected": true,
1766
+    "expected_type": "boolean",
1767
+    "comparison": "exact",
1768
+    "deviation": null
1769
+  },
1770
+  {
1771
+    "id": "0072-feel-in:ym_duration_004_a:ym_duration_004_a",
1772
+    "expression": "duration(\"P10Y\") in < duration(\"P10Y\")",
1773
+    "expected": false,
1774
+    "expected_type": "boolean",
1775
+    "comparison": "exact",
1776
+    "deviation": null
1777
+  },
1778
+  {
1779
+    "id": "0072-feel-in:ym_duration_005:ym_duration_005",
1780
+    "expression": "duration(\"P11Y\") in >= duration(\"P10Y\")",
1781
+    "expected": true,
1782
+    "expected_type": "boolean",
1783
+    "comparison": "exact",
1784
+    "deviation": null
1785
+  },
1786
+  {
1787
+    "id": "0072-feel-in:ym_duration_005_1:ym_duration_005_1",
1788
+    "expression": "duration(\"P10Y\") in >= duration(\"P10Y\")",
1789
+    "expected": true,
1790
+    "expected_type": "boolean",
1791
+    "comparison": "exact",
1792
+    "deviation": null
1793
+  },
1794
+  {
1795
+    "id": "0072-feel-in:ym_duration_005_a:ym_duration_005_a",
1796
+    "expression": "duration(\"P9Y\") in >= duration(\"P10Y\")",
1797
+    "expected": false,
1798
+    "expected_type": "boolean",
1799
+    "comparison": "exact",
1800
+    "deviation": null
1801
+  },
1802
+  {
1803
+    "id": "0072-feel-in:ym_duration_006:ym_duration_006",
1804
+    "expression": "duration(\"P11Y\") in > duration(\"P10Y\")",
1805
+    "expected": true,
1806
+    "expected_type": "boolean",
1807
+    "comparison": "exact",
1808
+    "deviation": null
1809
+  },
1810
+  {
1811
+    "id": "0072-feel-in:ym_duration_006_a:ym_duration_006_a",
1812
+    "expression": "duration(\"P10Y\") in > duration(\"P10Y\")",
1813
+    "expected": false,
1814
+    "expected_type": "boolean",
1815
+    "comparison": "exact",
1816
+    "deviation": null
1817
+  },
1818
+  {
1819
+    "id": "0072-feel-in:ym_duration_007_a:ym_duration_007_a",
1820
+    "expression": "duration(\"P1Y\") in (duration(\"P2Y\")..duration(\"P4Y\"))",
1821
+    "expected": false,
1822
+    "expected_type": "boolean",
1823
+    "comparison": "exact",
1824
+    "deviation": null
1825
+  },
1826
+  {
1827
+    "id": "0072-feel-in:ym_duration_007_b:ym_duration_007_b",
1828
+    "expression": "duration(\"P2Y\") in (duration(\"P2Y\")..duration(\"P4Y\"))",
1829
+    "expected": false,
1830
+    "expected_type": "boolean",
1831
+    "comparison": "exact",
1832
+    "deviation": null
1833
+  },
1834
+  {
1835
+    "id": "0072-feel-in:ym_duration_007_c:ym_duration_007_c",
1836
+    "expression": "duration(\"P3Y\") in (duration(\"P2Y\")..duration(\"P4Y\"))",
1837
+    "expected": true,
1838
+    "expected_type": "boolean",
1839
+    "comparison": "exact",
1840
+    "deviation": null
1841
+  },
1842
+  {
1843
+    "id": "0072-feel-in:ym_duration_007_d:ym_duration_007_d",
1844
+    "expression": "duration(\"P4Y\") in (duration(\"P2Y\")..duration(\"P4Y\"))",
1845
+    "expected": false,
1846
+    "expected_type": "boolean",
1847
+    "comparison": "exact",
1848
+    "deviation": null
1849
+  },
1850
+  {
1851
+    "id": "0072-feel-in:ym_duration_007_e:ym_duration_007_e",
1852
+    "expression": "duration(\"P5Y\") in (duration(\"P2Y\")..duration(\"P4Y\"))",
1853
+    "expected": false,
1854
+    "expected_type": "boolean",
1855
+    "comparison": "exact",
1856
+    "deviation": null
1857
+  },
1858
+  {
1859
+    "id": "0072-feel-in:ym_duration_008_a:ym_duration_008_a",
1860
+    "expression": "duration(\"P1Y\") in (duration(\"P2Y\")..duration(\"P4Y\")]",
1861
+    "expected": false,
1862
+    "expected_type": "boolean",
1863
+    "comparison": "exact",
1864
+    "deviation": null
1865
+  },
1866
+  {
1867
+    "id": "0072-feel-in:ym_duration_008_b:ym_duration_008_b",
1868
+    "expression": "duration(\"P2Y\") in (duration(\"P2Y\")..duration(\"P4Y\")]",
1869
+    "expected": false,
1870
+    "expected_type": "boolean",
1871
+    "comparison": "exact",
1872
+    "deviation": null
1873
+  },
1874
+  {
1875
+    "id": "0072-feel-in:ym_duration_008_c:ym_duration_008_c",
1876
+    "expression": "duration(\"P3Y\") in (duration(\"P2Y\")..duration(\"P4Y\")]",
1877
+    "expected": true,
1878
+    "expected_type": "boolean",
1879
+    "comparison": "exact",
1880
+    "deviation": null
1881
+  },
1882
+  {
1883
+    "id": "0072-feel-in:ym_duration_008_d:ym_duration_008_d",
1884
+    "expression": "duration(\"P4Y\") in (duration(\"P2Y\")..duration(\"P4Y\")]",
1885
+    "expected": true,
1886
+    "expected_type": "boolean",
1887
+    "comparison": "exact",
1888
+    "deviation": null
1889
+  },
1890
+  {
1891
+    "id": "0072-feel-in:ym_duration_008_e:ym_duration_008_e",
1892
+    "expression": "duration(\"P5Y\") in (duration(\"P2Y\")..duration(\"P4Y\")]",
1893
+    "expected": false,
1894
+    "expected_type": "boolean",
1895
+    "comparison": "exact",
1896
+    "deviation": null
1897
+  },
1898
+  {
1899
+    "id": "0072-feel-in:ym_duration_009_a:ym_duration_009_a",
1900
+    "expression": "duration(\"P1Y\") in [duration(\"P2Y\")..duration(\"P4Y\"))",
1901
+    "expected": false,
1902
+    "expected_type": "boolean",
1903
+    "comparison": "exact",
1904
+    "deviation": null
1905
+  },
1906
+  {
1907
+    "id": "0072-feel-in:ym_duration_009_b:ym_duration_009_b",
1908
+    "expression": "duration(\"P2Y\") in [duration(\"P2Y\")..duration(\"P4Y\"))",
1909
+    "expected": true,
1910
+    "expected_type": "boolean",
1911
+    "comparison": "exact",
1912
+    "deviation": null
1913
+  },
1914
+  {
1915
+    "id": "0072-feel-in:ym_duration_009_c:ym_duration_009_c",
1916
+    "expression": "duration(\"P3Y\") in [duration(\"P2Y\")..duration(\"P4Y\"))",
1917
+    "expected": true,
1918
+    "expected_type": "boolean",
1919
+    "comparison": "exact",
1920
+    "deviation": null
1921
+  },
1922
+  {
1923
+    "id": "0072-feel-in:ym_duration_009_d:ym_duration_009_d",
1924
+    "expression": "duration(\"P4Y\") in [duration(\"P2Y\")..duration(\"P4Y\"))",
1925
+    "expected": false,
1926
+    "expected_type": "boolean",
1927
+    "comparison": "exact",
1928
+    "deviation": null
1929
+  },
1930
+  {
1931
+    "id": "0072-feel-in:ym_duration_009_e:ym_duration_009_e",
1932
+    "expression": "duration(\"P5Y\") in [duration(\"P2Y\")..duration(\"P4Y\"))",
1933
+    "expected": false,
1934
+    "expected_type": "boolean",
1935
+    "comparison": "exact",
1936
+    "deviation": null
1937
+  },
1938
+  {
1939
+    "id": "0072-feel-in:ym_duration_010_a:ym_duration_010_a",
1940
+    "expression": "duration(\"P1Y\") in [duration(\"P2Y\")..duration(\"P4Y\")]",
1941
+    "expected": false,
1942
+    "expected_type": "boolean",
1943
+    "comparison": "exact",
1944
+    "deviation": null
1945
+  },
1946
+  {
1947
+    "id": "0072-feel-in:ym_duration_010_b:ym_duration_010_b",
1948
+    "expression": "duration(\"P2Y\") in [duration(\"P2Y\")..duration(\"P4Y\")]",
1949
+    "expected": true,
1950
+    "expected_type": "boolean",
1951
+    "comparison": "exact",
1952
+    "deviation": null
1953
+  },
1954
+  {
1955
+    "id": "0072-feel-in:ym_duration_010_c:ym_duration_010_c",
1956
+    "expression": "duration(\"P3Y\") in [duration(\"P2Y\")..duration(\"P4Y\")]",
1957
+    "expected": true,
1958
+    "expected_type": "boolean",
1959
+    "comparison": "exact",
1960
+    "deviation": null
1961
+  },
1962
+  {
1963
+    "id": "0072-feel-in:ym_duration_010_d:ym_duration_010_d",
1964
+    "expression": "duration(\"P4Y\") in [duration(\"P2Y\")..duration(\"P4Y\")]",
1965
+    "expected": true,
1966
+    "expected_type": "boolean",
1967
+    "comparison": "exact",
1968
+    "deviation": null
1969
+  },
1970
+  {
1971
+    "id": "0072-feel-in:ym_duration_010_e:ym_duration_010_e",
1972
+    "expression": "duration(\"P5Y\") in [duration(\"P2Y\")..duration(\"P4Y\")]",
1973
+    "expected": false,
1974
+    "expected_type": "boolean",
1975
+    "comparison": "exact",
1976
+    "deviation": null
3611977
   }
3621978
 ]

modified tools/ingest_tck.py +50 −8

@@ -111,6 +111,46 @@
111111
     "min", "max", "sum", "mean", "product", "median", "stddev", "mode",
112112
     "all", "any", "append", "concatenate", "union",
113113
 })
114
+
115
+
116
+def _single_interval(rhs: str) -> bool:
117
+    """`rhs` begins with `[` or `(`: true iff it is a *single* interval — a top-level
118
+    `..` and no top-level comma before the matching close (so `[date(…)..date(…)]`
119
+    with parenthesised endpoints is accepted, but a list `[2,3,1]` /
120
+    `[[a..b],[c..d]]` is not)."""
121
+    depth = 0
122
+    saw_dotdot = saw_comma = False
123
+    i = 0
124
+    while i < len(rhs):
125
+        c = rhs[i]
126
+        if c in "[(":
127
+            depth += 1
128
+        elif c in "])":
129
+            depth -= 1
130
+            if depth == 0:
131
+                return saw_dotdot and not saw_comma
132
+        elif depth == 1 and rhs[i : i + 2] == "..":
133
+            saw_dotdot = True
134
+            i += 2
135
+            continue
136
+        elif depth == 1 and c == ",":
137
+            saw_comma = True
138
+        i += 1
139
+    return False  # unbalanced
140
+
141
+
142
+def _in_rhs_supported(after: str) -> bool:
143
+    """True if the text after a membership `in` is a slice-supported positive unary
144
+    test: a single comparison `<op> endpoint` (`< 10`, `= e`, `!= e`, with any
145
+    endpoint), or a single interval `[a..b]`/`(a..b)` (endpoints may be function
146
+    calls). The comma-list (`[2,3,1]`, `(false,true)`) and bare-equality (`1 in 1`)
147
+    forms are out of slice (deferred — see ROADMAP)."""
148
+    t = after.lstrip()
149
+    if re.match(r"<=|>=|!=|<|>|=", t):
150
+        return True
151
+    if t[:1] in "[(":
152
+        return _single_interval(t)
153
+    return False
114154
 
115155
 
116156
 def fits_slice_grammar(expression: str, input_names: frozenset[str] = frozenset()) -> bool:
@@ -232,14 +272,17 @@
232272
             # (`TEMPORAL_FOR_RANGE_SKIPS`); datetime/time/duration ranges yield null
233273
             # in both the TCK and feel-core, so they stay in the slice.
234274
         else:
235
-            # Otherwise every `..` must sit inside a membership interval.
236
-            membership = re.findall(r"\bin\s*[\[(][^\[\]()]*\.\.[^\[\]()]*[\])]", s)
237
-            if len(membership) != s.count(".."):
275
+            # Outside an iteration, a `..` is only legal inside a membership-interval
276
+            # RHS. The membership scan below validates each `in` RHS (a single
277
+            # interval has exactly one top-level `..`); here just reject a stray `..`
278
+            # when there is no membership `in` to host it.
279
+            if not re.search(r"\bin\b", s):
238280
                 return False
239281
 
240
-    # Membership `in` (i.e. not a for/some/every iterator) is only supported for
241
-    # a bracketed interval `[a..b]`. Reject the other FEEL `in` forms the grammar
242
-    # does not implement: `x in y`, `x in (t1, t2)`, `x in =y`, `x in [list]`.
282
+    # Membership `in` (not a for/some/every iterator). The slice supports a single
283
+    # comparison test (`x in < y`, `x in = y`) or a single interval (`x in [a..b]`,
284
+    # endpoints may be function calls). The comma-list and bare-equality forms are
285
+    # out of slice (deferred) — see `_in_rhs_supported`.
243286
     for m in re.finditer(r"\bin\b", s):
244287
         before = s[: m.start()]
245288
         if re.search(r"\b(?:for|some|every)\s+[A-Za-z_]\w*\s*$", before):
@@ -250,8 +293,7 @@
250293
             r"\b(?:for|some|every)\b", before
251294
         ):
252295
             continue
253
-        after = s[m.end() :]
254
-        if not re.match(r"\s*[\[(][^\[\]()]*\.\.[^\[\]()]*[\])]", after):
296
+        if not _in_rhs_supported(s[m.end() :]):
255297
             return False
256298
 
257299
     return True