Public repository: timo / feel

Reader

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

test(core): ingest range-operand arithmetic + misc new cases (+116)

public

test(core): ingest range-operand arithmetic + misc new cases (+116)

Re-ingested 0100-arithmetic (+115), 0099-arithmetic-negation (+1),
and 1148-feel-now-function (+1) against the current ingester.

0100: 115 new TCK cases added since last ingest — all arithmetic
operations applied to range operands (e.g. `true + [1..10]`) whose
expected result is null; feel-core already handles these correctly.

0099: new case `-[1..5]` → null (negation of a range literal).

1148: new case `now() instance of date and time` → true.

No previously accepted cases were removed or have changed expected values.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Changeset92d2355645222260a9d906c3c0e8af8d2a37faaa
Author (claimed)Timo Stolz <timo.stolz@gmail.com>,
Parents77338493ada4
Children
Pushlog
by timo via ssh

modified crates/feel-core/tests/fixtures/0099-arithmetic-negation.json +8 −0

@@ -96,5 +96,13 @@
9696
     "expected_type": "null",
9797
     "comparison": "exact",
9898
     "deviation": null
99
+  },
100
+  {
101
+    "id": "0099-arithmetic-negation:decision_011:decision_011",
102
+    "expression": "-[1..5]",
103
+    "expected": null,
104
+    "expected_type": "null",
105
+    "comparison": "exact",
106
+    "deviation": null
99107
   }
100108
 ]

modified crates/feel-core/tests/fixtures/0100-arithmetic.json +920 −0

@@ -1096,6 +1096,14 @@
10961096
     "deviation": null
10971097
   },
10981098
   {
1099
+    "id": "0100-arithmetic:error_when_add_lhs_boolean_to_rhs_range:error_when_add_lhs_boolean_to_rhs_range",
1100
+    "expression": "true + [1..10]",
1101
+    "expected": null,
1102
+    "expected_type": "null",
1103
+    "comparison": "exact",
1104
+    "deviation": null
1105
+  },
1106
+  {
10991107
     "id": "0100-arithmetic:error_when_add_lhs_boolean_to_rhs_string:error_when_add_lhs_boolean_to_rhs_string",
11001108
     "expression": "true + \"10\"",
11011109
     "expected": null,
@@ -1184,6 +1192,14 @@
11841192
     "deviation": null
11851193
   },
11861194
   {
1195
+    "id": "0100-arithmetic:error_when_add_lhs_context_to_rhs_range:error_when_add_lhs_context_to_rhs_range",
1196
+    "expression": "{a: 10} + [1..10]",
1197
+    "expected": null,
1198
+    "expected_type": "null",
1199
+    "comparison": "exact",
1200
+    "deviation": null
1201
+  },
1202
+  {
11871203
     "id": "0100-arithmetic:error_when_add_lhs_context_to_rhs_string:error_when_add_lhs_context_to_rhs_string",
11881204
     "expression": "{a: 10} + \"10\"",
11891205
     "expected": null,
@@ -1264,6 +1280,14 @@
12641280
     "deviation": null
12651281
   },
12661282
   {
1283
+    "id": "0100-arithmetic:error_when_add_lhs_dateAndTime_to_rhs_range:error_when_add_lhs_dateAndTime_to_rhs_range",
1284
+    "expression": "@\"2021-01-01T10:10:10\" + [1..10]",
1285
+    "expected": null,
1286
+    "expected_type": "null",
1287
+    "comparison": "exact",
1288
+    "deviation": null
1289
+  },
1290
+  {
12671291
     "id": "0100-arithmetic:error_when_add_lhs_dateAndTime_to_rhs_string:error_when_add_lhs_dateAndTime_to_rhs_string",
12681292
     "expression": "@\"2021-01-01T10:10:10\" + \"10\"",
12691293
     "expected": null,
@@ -1336,6 +1360,14 @@
13361360
     "deviation": null
13371361
   },
13381362
   {
1363
+    "id": "0100-arithmetic:error_when_add_lhs_date_to_rhs_range:error_when_add_lhs_date_to_rhs_range",
1364
+    "expression": "@\"2021-01-01\" + [1..10]",
1365
+    "expected": null,
1366
+    "expected_type": "null",
1367
+    "comparison": "exact",
1368
+    "deviation": null
1369
+  },
1370
+  {
13391371
     "id": "0100-arithmetic:error_when_add_lhs_date_to_rhs_string:error_when_add_lhs_date_to_rhs_string",
13401372
     "expression": "@\"2021-01-01\" + \"10\"",
13411373
     "expected": null,
@@ -1392,6 +1424,14 @@
13921424
     "deviation": null
13931425
   },
13941426
   {
1427
+    "id": "0100-arithmetic:error_when_add_lhs_dtDuration_to_rhs_range:error_when_add_lhs_dtDuration_to_rhs_range",
1428
+    "expression": "@\"P1D\" + [1..10]",
1429
+    "expected": null,
1430
+    "expected_type": "null",
1431
+    "comparison": "exact",
1432
+    "deviation": null
1433
+  },
1434
+  {
13951435
     "id": "0100-arithmetic:error_when_add_lhs_dtDuration_to_rhs_string:error_when_add_lhs_dtDuration_to_rhs_string",
13961436
     "expression": "@\"P1D\" + \"10\"",
13971437
     "expected": null,
@@ -1472,6 +1512,14 @@
14721512
     "deviation": null
14731513
   },
14741514
   {
1515
+    "id": "0100-arithmetic:error_when_add_lhs_list_to_rhs_range:error_when_add_lhs_list_to_rhs_range",
1516
+    "expression": "[10] + [1..10]",
1517
+    "expected": null,
1518
+    "expected_type": "null",
1519
+    "comparison": "exact",
1520
+    "deviation": null
1521
+  },
1522
+  {
14751523
     "id": "0100-arithmetic:error_when_add_lhs_list_to_rhs_string:error_when_add_lhs_list_to_rhs_string",
14761524
     "expression": "[10] + \"10\"",
14771525
     "expected": null,
@@ -1560,6 +1608,14 @@
15601608
     "deviation": null
15611609
   },
15621610
   {
1611
+    "id": "0100-arithmetic:error_when_add_lhs_null_to_rhs_range:error_when_add_lhs_null_to_rhs_range",
1612
+    "expression": "null + [1..10]",
1613
+    "expected": null,
1614
+    "expected_type": "null",
1615
+    "comparison": "exact",
1616
+    "deviation": null
1617
+  },
1618
+  {
15631619
     "id": "0100-arithmetic:error_when_add_lhs_null_to_rhs_string:error_when_add_lhs_null_to_rhs_string",
15641620
     "expression": "null + \"10\"",
15651621
     "expected": null,
@@ -1640,6 +1696,14 @@
16401696
     "deviation": null
16411697
   },
16421698
   {
1699
+    "id": "0100-arithmetic:error_when_add_lhs_number_to_rhs_range:error_when_add_lhs_number_to_rhs_range",
1700
+    "expression": "10 + [1..10]",
1701
+    "expected": null,
1702
+    "expected_type": "null",
1703
+    "comparison": "exact",
1704
+    "deviation": null
1705
+  },
1706
+  {
16431707
     "id": "0100-arithmetic:error_when_add_lhs_number_to_rhs_string:error_when_add_lhs_number_to_rhs_string",
16441708
     "expression": "10 + \"10\"",
16451709
     "expected": null,
@@ -1664,6 +1728,102 @@
16641728
     "deviation": null
16651729
   },
16661730
   {
1731
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_boolean:error_when_add_lhs_range_to_rhs_boolean",
1732
+    "expression": "[1..10] + true",
1733
+    "expected": null,
1734
+    "expected_type": "null",
1735
+    "comparison": "exact",
1736
+    "deviation": null
1737
+  },
1738
+  {
1739
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_context:error_when_add_lhs_range_to_rhs_context",
1740
+    "expression": "[1..10] + {a: 10}",
1741
+    "expected": null,
1742
+    "expected_type": "null",
1743
+    "comparison": "exact",
1744
+    "deviation": null
1745
+  },
1746
+  {
1747
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_date:error_when_add_lhs_range_to_rhs_date",
1748
+    "expression": "[1..10] + @\"2021-01-01\"",
1749
+    "expected": null,
1750
+    "expected_type": "null",
1751
+    "comparison": "exact",
1752
+    "deviation": null
1753
+  },
1754
+  {
1755
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_dateAndTime:error_when_add_lhs_range_to_rhs_dateAndTime",
1756
+    "expression": "[1..10] + @\"2021-01-01T10:10:10\"",
1757
+    "expected": null,
1758
+    "expected_type": "null",
1759
+    "comparison": "exact",
1760
+    "deviation": null
1761
+  },
1762
+  {
1763
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_dtDuration:error_when_add_lhs_range_to_rhs_dtDuration",
1764
+    "expression": "[1..10] + @\"P1D\"",
1765
+    "expected": null,
1766
+    "expected_type": "null",
1767
+    "comparison": "exact",
1768
+    "deviation": null
1769
+  },
1770
+  {
1771
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_list:error_when_add_lhs_range_to_rhs_list",
1772
+    "expression": "[1..10] + [10]",
1773
+    "expected": null,
1774
+    "expected_type": "null",
1775
+    "comparison": "exact",
1776
+    "deviation": null
1777
+  },
1778
+  {
1779
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_null:error_when_add_lhs_range_to_rhs_null",
1780
+    "expression": "[1..10] + null",
1781
+    "expected": null,
1782
+    "expected_type": "null",
1783
+    "comparison": "exact",
1784
+    "deviation": null
1785
+  },
1786
+  {
1787
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_number:error_when_add_lhs_range_to_rhs_number",
1788
+    "expression": "[1..10] + 10",
1789
+    "expected": null,
1790
+    "expected_type": "null",
1791
+    "comparison": "exact",
1792
+    "deviation": null
1793
+  },
1794
+  {
1795
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_range:error_when_add_lhs_range_to_rhs_range",
1796
+    "expression": "[1..10] + [1..10]",
1797
+    "expected": null,
1798
+    "expected_type": "null",
1799
+    "comparison": "exact",
1800
+    "deviation": null
1801
+  },
1802
+  {
1803
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_string:error_when_add_lhs_range_to_rhs_string",
1804
+    "expression": "[1..10] + \"10\"",
1805
+    "expected": null,
1806
+    "expected_type": "null",
1807
+    "comparison": "exact",
1808
+    "deviation": null
1809
+  },
1810
+  {
1811
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_time:error_when_add_lhs_range_to_rhs_time",
1812
+    "expression": "[1..10] + @\"10:10:10\"",
1813
+    "expected": null,
1814
+    "expected_type": "null",
1815
+    "comparison": "exact",
1816
+    "deviation": null
1817
+  },
1818
+  {
1819
+    "id": "0100-arithmetic:error_when_add_lhs_range_to_rhs_ymDuration:error_when_add_lhs_range_to_rhs_ymDuration",
1820
+    "expression": "[1..10] + @\"P1Y\"",
1821
+    "expected": null,
1822
+    "expected_type": "null",
1823
+    "comparison": "exact",
1824
+    "deviation": null
1825
+  },
1826
+  {
16671827
     "id": "0100-arithmetic:error_when_add_lhs_string_to_rhs_boolean:error_when_add_lhs_string_to_rhs_boolean",
16681828
     "expression": "\"10\" + true",
16691829
     "expected": null,
@@ -1728,6 +1888,14 @@
17281888
     "deviation": null
17291889
   },
17301890
   {
1891
+    "id": "0100-arithmetic:error_when_add_lhs_string_to_rhs_range:error_when_add_lhs_string_to_rhs_range",
1892
+    "expression": "\"10\" + [1..10]",
1893
+    "expected": null,
1894
+    "expected_type": "null",
1895
+    "comparison": "exact",
1896
+    "deviation": null
1897
+  },
1898
+  {
17311899
     "id": "0100-arithmetic:error_when_add_lhs_string_to_rhs_time:error_when_add_lhs_string_to_rhs_time",
17321900
     "expression": "\"10\" + @\"10:10:10\"",
17331901
     "expected": null,
@@ -1800,6 +1968,14 @@
18001968
     "deviation": null
18011969
   },
18021970
   {
1971
+    "id": "0100-arithmetic:error_when_add_lhs_time_to_rhs_range:error_when_add_lhs_time_to_rhs_range",
1972
+    "expression": "@\"10:10:10\" + [1..10]",
1973
+    "expected": null,
1974
+    "expected_type": "null",
1975
+    "comparison": "exact",
1976
+    "deviation": null
1977
+  },
1978
+  {
18031979
     "id": "0100-arithmetic:error_when_add_lhs_time_to_rhs_string:error_when_add_lhs_time_to_rhs_string",
18041980
     "expression": "@\"10:10:10\" + \"10\"",
18051981
     "expected": null,
@@ -1872,6 +2048,14 @@
18722048
     "deviation": null
18732049
   },
18742050
   {
2051
+    "id": "0100-arithmetic:error_when_add_lhs_ymDuration_to_rhs_range:error_when_add_lhs_ymDuration_to_rhs_range",
2052
+    "expression": "@\"P1Y\" + [1..10]",
2053
+    "expected": null,
2054
+    "expected_type": "null",
2055
+    "comparison": "exact",
2056
+    "deviation": null
2057
+  },
2058
+  {
18752059
     "id": "0100-arithmetic:error_when_add_lhs_ymDuration_to_rhs_string:error_when_add_lhs_ymDuration_to_rhs_string",
18762060
     "expression": "@\"P1Y\" + \"10\"",
18772061
     "expected": null,
@@ -1952,6 +2136,14 @@
19522136
     "deviation": null
19532137
   },
19542138
   {
2139
+    "id": "0100-arithmetic:error_when_divide_lhs_boolean_by_rhs_range:error_when_divide_lhs_boolean_by_rhs_range",
2140
+    "expression": "true / [1..10]",
2141
+    "expected": null,
2142
+    "expected_type": "null",
2143
+    "comparison": "exact",
2144
+    "deviation": null
2145
+  },
2146
+  {
19552147
     "id": "0100-arithmetic:error_when_divide_lhs_boolean_by_rhs_string:error_when_divide_lhs_boolean_by_rhs_string",
19562148
     "expression": "true / \"10\"",
19572149
     "expected": null,
@@ -2040,6 +2232,14 @@
20402232
     "deviation": null
20412233
   },
20422234
   {
2235
+    "id": "0100-arithmetic:error_when_divide_lhs_context_by_rhs_range:error_when_divide_lhs_context_by_rhs_range",
2236
+    "expression": "{a: 10} / [1..10]",
2237
+    "expected": null,
2238
+    "expected_type": "null",
2239
+    "comparison": "exact",
2240
+    "deviation": null
2241
+  },
2242
+  {
20432243
     "id": "0100-arithmetic:error_when_divide_lhs_context_by_rhs_string:error_when_divide_lhs_context_by_rhs_string",
20442244
     "expression": "{a: 10} / \"10\"",
20452245
     "expected": null,
@@ -2128,6 +2328,14 @@
21282328
     "deviation": null
21292329
   },
21302330
   {
2331
+    "id": "0100-arithmetic:error_when_divide_lhs_dateAndTime_by_rhs_range:error_when_divide_lhs_dateAndTime_by_rhs_range",
2332
+    "expression": "@\"2021-01-01T10:10:10\" / [1..10]",
2333
+    "expected": null,
2334
+    "expected_type": "null",
2335
+    "comparison": "exact",
2336
+    "deviation": null
2337
+  },
2338
+  {
21312339
     "id": "0100-arithmetic:error_when_divide_lhs_dateAndTime_by_rhs_string:error_when_divide_lhs_dateAndTime_by_rhs_string",
21322340
     "expression": "@\"2021-01-01T10:10:10\" / \"10\"",
21332341
     "expected": null,
@@ -2216,6 +2424,14 @@
22162424
     "deviation": null
22172425
   },
22182426
   {
2427
+    "id": "0100-arithmetic:error_when_divide_lhs_date_by_rhs_range:error_when_divide_lhs_date_by_rhs_range",
2428
+    "expression": "@\"2021-01-01\" / [1..10]",
2429
+    "expected": null,
2430
+    "expected_type": "null",
2431
+    "comparison": "exact",
2432
+    "deviation": null
2433
+  },
2434
+  {
22192435
     "id": "0100-arithmetic:error_when_divide_lhs_date_by_rhs_string:error_when_divide_lhs_date_by_rhs_string",
22202436
     "expression": "@\"2021-01-01\" / \"10\"",
22212437
     "expected": null,
@@ -2288,6 +2504,14 @@
22882504
     "deviation": null
22892505
   },
22902506
   {
2507
+    "id": "0100-arithmetic:error_when_divide_lhs_dtDuration_by_rhs_range:error_when_divide_lhs_dtDuration_by_rhs_range",
2508
+    "expression": "@\"P1D\" / [1..10]",
2509
+    "expected": null,
2510
+    "expected_type": "null",
2511
+    "comparison": "exact",
2512
+    "deviation": null
2513
+  },
2514
+  {
22912515
     "id": "0100-arithmetic:error_when_divide_lhs_dtDuration_by_rhs_string:error_when_divide_lhs_dtDuration_by_rhs_string",
22922516
     "expression": "@\"P1D\" / \"10\"",
22932517
     "expected": null,
@@ -2376,6 +2600,14 @@
23762600
     "deviation": null
23772601
   },
23782602
   {
2603
+    "id": "0100-arithmetic:error_when_divide_lhs_list_by_rhs_range:error_when_divide_lhs_list_by_rhs_range",
2604
+    "expression": "[10] / [1..10]",
2605
+    "expected": null,
2606
+    "expected_type": "null",
2607
+    "comparison": "exact",
2608
+    "deviation": null
2609
+  },
2610
+  {
23792611
     "id": "0100-arithmetic:error_when_divide_lhs_list_by_rhs_string:error_when_divide_lhs_list_by_rhs_string",
23802612
     "expression": "[10] / \"10\"",
23812613
     "expected": null,
@@ -2464,6 +2696,14 @@
24642696
     "deviation": null
24652697
   },
24662698
   {
2699
+    "id": "0100-arithmetic:error_when_divide_lhs_null_by_rhs_range:error_when_divide_lhs_null_by_rhs_range",
2700
+    "expression": "null / [1..10]",
2701
+    "expected": null,
2702
+    "expected_type": "null",
2703
+    "comparison": "exact",
2704
+    "deviation": null
2705
+  },
2706
+  {
24672707
     "id": "0100-arithmetic:error_when_divide_lhs_null_by_rhs_string:error_when_divide_lhs_null_by_rhs_string",
24682708
     "expression": "null / \"10\"",
24692709
     "expected": null,
@@ -2544,6 +2784,14 @@
25442784
     "deviation": null
25452785
   },
25462786
   {
2787
+    "id": "0100-arithmetic:error_when_divide_lhs_number_by_rhs_range:error_when_divide_lhs_number_by_rhs_range",
2788
+    "expression": "10 / [1..10]",
2789
+    "expected": null,
2790
+    "expected_type": "null",
2791
+    "comparison": "exact",
2792
+    "deviation": null
2793
+  },
2794
+  {
25472795
     "id": "0100-arithmetic:error_when_divide_lhs_number_by_rhs_string:error_when_divide_lhs_number_by_rhs_string",
25482796
     "expression": "10 / \"10\"",
25492797
     "expected": null,
@@ -2568,6 +2816,102 @@
25682816
     "deviation": null
25692817
   },
25702818
   {
2819
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_boolean:error_when_divide_lhs_range_by_rhs_boolean",
2820
+    "expression": "[1..10] / true",
2821
+    "expected": null,
2822
+    "expected_type": "null",
2823
+    "comparison": "exact",
2824
+    "deviation": null
2825
+  },
2826
+  {
2827
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_context:error_when_divide_lhs_range_by_rhs_context",
2828
+    "expression": "[1..10] / {a: 10}",
2829
+    "expected": null,
2830
+    "expected_type": "null",
2831
+    "comparison": "exact",
2832
+    "deviation": null
2833
+  },
2834
+  {
2835
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_date:error_when_divide_lhs_range_by_rhs_date",
2836
+    "expression": "[1..10] / @\"2021-01-01\"",
2837
+    "expected": null,
2838
+    "expected_type": "null",
2839
+    "comparison": "exact",
2840
+    "deviation": null
2841
+  },
2842
+  {
2843
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_dateAndTime:error_when_divide_lhs_range_by_rhs_dateAndTime",
2844
+    "expression": "[1..10] / @\"2021-01-01T10:10:10\"",
2845
+    "expected": null,
2846
+    "expected_type": "null",
2847
+    "comparison": "exact",
2848
+    "deviation": null
2849
+  },
2850
+  {
2851
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_dtDuration:error_when_divide_lhs_range_by_rhs_dtDuration",
2852
+    "expression": "[1..10] / @\"P1D\"",
2853
+    "expected": null,
2854
+    "expected_type": "null",
2855
+    "comparison": "exact",
2856
+    "deviation": null
2857
+  },
2858
+  {
2859
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_list:error_when_divide_lhs_range_by_rhs_list",
2860
+    "expression": "[1..10] / [10]",
2861
+    "expected": null,
2862
+    "expected_type": "null",
2863
+    "comparison": "exact",
2864
+    "deviation": null
2865
+  },
2866
+  {
2867
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_null:error_when_divide_lhs_range_by_rhs_null",
2868
+    "expression": "[1..10] / null",
2869
+    "expected": null,
2870
+    "expected_type": "null",
2871
+    "comparison": "exact",
2872
+    "deviation": null
2873
+  },
2874
+  {
2875
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_number:error_when_divide_lhs_range_by_rhs_number",
2876
+    "expression": "[1..10] / 10",
2877
+    "expected": null,
2878
+    "expected_type": "null",
2879
+    "comparison": "exact",
2880
+    "deviation": null
2881
+  },
2882
+  {
2883
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_range:error_when_divide_lhs_range_by_rhs_range",
2884
+    "expression": "[1..10] / [1..10]",
2885
+    "expected": null,
2886
+    "expected_type": "null",
2887
+    "comparison": "exact",
2888
+    "deviation": null
2889
+  },
2890
+  {
2891
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_string:error_when_divide_lhs_range_by_rhs_string",
2892
+    "expression": "[1..10] / \"10\"",
2893
+    "expected": null,
2894
+    "expected_type": "null",
2895
+    "comparison": "exact",
2896
+    "deviation": null
2897
+  },
2898
+  {
2899
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_time:error_when_divide_lhs_range_by_rhs_time",
2900
+    "expression": "[1..10] / @\"10:10:10\"",
2901
+    "expected": null,
2902
+    "expected_type": "null",
2903
+    "comparison": "exact",
2904
+    "deviation": null
2905
+  },
2906
+  {
2907
+    "id": "0100-arithmetic:error_when_divide_lhs_range_by_rhs_ymDuration:error_when_divide_lhs_range_by_rhs_ymDuration",
2908
+    "expression": "[1..10] / @\"P1Y\"",
2909
+    "expected": null,
2910
+    "expected_type": "null",
2911
+    "comparison": "exact",
2912
+    "deviation": null
2913
+  },
2914
+  {
25712915
     "id": "0100-arithmetic:error_when_divide_lhs_string_by_rhs_boolean:error_when_divide_lhs_string_by_rhs_boolean",
25722916
     "expression": "\"10\" / true",
25732917
     "expected": null,
@@ -2632,6 +2976,14 @@
26322976
     "deviation": null
26332977
   },
26342978
   {
2979
+    "id": "0100-arithmetic:error_when_divide_lhs_string_by_rhs_range:error_when_divide_lhs_string_by_rhs_range",
2980
+    "expression": "\"10\" / [1..10]",
2981
+    "expected": null,
2982
+    "expected_type": "null",
2983
+    "comparison": "exact",
2984
+    "deviation": null
2985
+  },
2986
+  {
26352987
     "id": "0100-arithmetic:error_when_divide_lhs_string_by_rhs_string:error_when_divide_lhs_string_by_rhs_string",
26362988
     "expression": "\"10\" / \"10\"",
26372989
     "expected": null,
@@ -2720,6 +3072,14 @@
27203072
     "deviation": null
27213073
   },
27223074
   {
3075
+    "id": "0100-arithmetic:error_when_divide_lhs_time_by_rhs_range:error_when_divide_lhs_time_by_rhs_range",
3076
+    "expression": "@\"10:10:10\" / [1..10]",
3077
+    "expected": null,
3078
+    "expected_type": "null",
3079
+    "comparison": "exact",
3080
+    "deviation": null
3081
+  },
3082
+  {
27233083
     "id": "0100-arithmetic:error_when_divide_lhs_time_by_rhs_string:error_when_divide_lhs_time_by_rhs_string",
27243084
     "expression": "@\"10:10:10\" / \"10\"",
27253085
     "expected": null,
@@ -2800,6 +3160,14 @@
28003160
     "deviation": null
28013161
   },
28023162
   {
3163
+    "id": "0100-arithmetic:error_when_divide_lhs_ymDuration_by_rhs_range:error_when_divide_lhs_ymDuration_by_rhs_range",
3164
+    "expression": "@\"P1Y\" / [1..10]",
3165
+    "expected": null,
3166
+    "expected_type": "null",
3167
+    "comparison": "exact",
3168
+    "deviation": null
3169
+  },
3170
+  {
28033171
     "id": "0100-arithmetic:error_when_divide_lhs_ymDuration_by_rhs_string:error_when_divide_lhs_ymDuration_by_rhs_string",
28043172
     "expression": "@\"P1Y\" / \"10\"",
28053173
     "expected": null,
@@ -2880,6 +3248,14 @@
28803248
     "deviation": null
28813249
   },
28823250
   {
3251
+    "id": "0100-arithmetic:error_when_exponent_lhs_boolean_exp_rhs_range:error_when_exponent_lhs_boolean_exp_rhs_range",
3252
+    "expression": "true ** [1..10]",
3253
+    "expected": null,
3254
+    "expected_type": "null",
3255
+    "comparison": "exact",
3256
+    "deviation": null
3257
+  },
3258
+  {
28833259
     "id": "0100-arithmetic:error_when_exponent_lhs_boolean_exp_rhs_string:error_when_exponent_lhs_boolean_exp_rhs_string",
28843260
     "expression": "true ** \"10\"",
28853261
     "expected": null,
@@ -2968,6 +3344,14 @@
29683344
     "deviation": null
29693345
   },
29703346
   {
3347
+    "id": "0100-arithmetic:error_when_exponent_lhs_context_exp_rhs_range:error_when_exponent_lhs_context_exp_rhs_range",
3348
+    "expression": "{a: 10} ** [1..10]",
3349
+    "expected": null,
3350
+    "expected_type": "null",
3351
+    "comparison": "exact",
3352
+    "deviation": null
3353
+  },
3354
+  {
29713355
     "id": "0100-arithmetic:error_when_exponent_lhs_context_exp_rhs_string:error_when_exponent_lhs_context_exp_rhs_string",
29723356
     "expression": "{a: 10} ** \"10\"",
29733357
     "expected": null,
@@ -3056,6 +3440,14 @@
30563440
     "deviation": null
30573441
   },
30583442
   {
3443
+    "id": "0100-arithmetic:error_when_exponent_lhs_dateAndTime_exp_rhs_range:error_when_exponent_lhs_dateAndTime_exp_rhs_range",
3444
+    "expression": "@\"2021-01-01T10:10:10\" ** [1..10]",
3445
+    "expected": null,
3446
+    "expected_type": "null",
3447
+    "comparison": "exact",
3448
+    "deviation": null
3449
+  },
3450
+  {
30593451
     "id": "0100-arithmetic:error_when_exponent_lhs_dateAndTime_exp_rhs_string:error_when_exponent_lhs_dateAndTime_exp_rhs_string",
30603452
     "expression": "@\"2021-01-01T10:10:10\" ** \"10\"",
30613453
     "expected": null,
@@ -3144,6 +3536,14 @@
31443536
     "deviation": null
31453537
   },
31463538
   {
3539
+    "id": "0100-arithmetic:error_when_exponent_lhs_date_exp_rhs_range:error_when_exponent_lhs_date_exp_rhs_range",
3540
+    "expression": "@\"2021-01-01\" ** [1..10]",
3541
+    "expected": null,
3542
+    "expected_type": "null",
3543
+    "comparison": "exact",
3544
+    "deviation": null
3545
+  },
3546
+  {
31473547
     "id": "0100-arithmetic:error_when_exponent_lhs_date_exp_rhs_string:error_when_exponent_lhs_date_exp_rhs_string",
31483548
     "expression": "@\"2021-01-01\" ** \"10\"",
31493549
     "expected": null,
@@ -3232,6 +3632,14 @@
32323632
     "deviation": null
32333633
   },
32343634
   {
3635
+    "id": "0100-arithmetic:error_when_exponent_lhs_dtDuration_exp_rhs_range:error_when_exponent_lhs_dtDuration_exp_rhs_range",
3636
+    "expression": "@\"P1D\" ** [1..10]",
3637
+    "expected": null,
3638
+    "expected_type": "null",
3639
+    "comparison": "exact",
3640
+    "deviation": null
3641
+  },
3642
+  {
32353643
     "id": "0100-arithmetic:error_when_exponent_lhs_dtDuration_exp_rhs_string:error_when_exponent_lhs_dtDuration_exp_rhs_string",
32363644
     "expression": "@\"P1D\" ** \"10\"",
32373645
     "expected": null,
@@ -3320,6 +3728,14 @@
33203728
     "deviation": null
33213729
   },
33223730
   {
3731
+    "id": "0100-arithmetic:error_when_exponent_lhs_list_exp_rhs_range:error_when_exponent_lhs_list_exp_rhs_range",
3732
+    "expression": "[10] ** [1..10]",
3733
+    "expected": null,
3734
+    "expected_type": "null",
3735
+    "comparison": "exact",
3736
+    "deviation": null
3737
+  },
3738
+  {
33233739
     "id": "0100-arithmetic:error_when_exponent_lhs_list_exp_rhs_string:error_when_exponent_lhs_list_exp_rhs_string",
33243740
     "expression": "[10] ** \"10\"",
33253741
     "expected": null,
@@ -3408,6 +3824,14 @@
34083824
     "deviation": null
34093825
   },
34103826
   {
3827
+    "id": "0100-arithmetic:error_when_exponent_lhs_null_exp_rhs_range:error_when_exponent_lhs_null_exp_rhs_range",
3828
+    "expression": "null ** [1..10]",
3829
+    "expected": null,
3830
+    "expected_type": "null",
3831
+    "comparison": "exact",
3832
+    "deviation": null
3833
+  },
3834
+  {
34113835
     "id": "0100-arithmetic:error_when_exponent_lhs_null_exp_rhs_string:error_when_exponent_lhs_null_exp_rhs_string",
34123836
     "expression": "null ** \"10\"",
34133837
     "expected": null,
@@ -3488,6 +3912,14 @@
34883912
     "deviation": null
34893913
   },
34903914
   {
3915
+    "id": "0100-arithmetic:error_when_exponent_lhs_number_exp_rhs_range:error_when_exponent_lhs_number_exp_rhs_range",
3916
+    "expression": "10 ** [1..10]",
3917
+    "expected": null,
3918
+    "expected_type": "null",
3919
+    "comparison": "exact",
3920
+    "deviation": null
3921
+  },
3922
+  {
34913923
     "id": "0100-arithmetic:error_when_exponent_lhs_number_exp_rhs_string:error_when_exponent_lhs_number_exp_rhs_string",
34923924
     "expression": "10 ** \"10\"",
34933925
     "expected": null,
@@ -3512,6 +3944,102 @@
35123944
     "deviation": null
35133945
   },
35143946
   {
3947
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_boolean:error_when_exponent_lhs_range_exp_rhs_boolean",
3948
+    "expression": "[1..10] ** true",
3949
+    "expected": null,
3950
+    "expected_type": "null",
3951
+    "comparison": "exact",
3952
+    "deviation": null
3953
+  },
3954
+  {
3955
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_context:error_when_exponent_lhs_range_exp_rhs_context",
3956
+    "expression": "[1..10] ** {a: 10}",
3957
+    "expected": null,
3958
+    "expected_type": "null",
3959
+    "comparison": "exact",
3960
+    "deviation": null
3961
+  },
3962
+  {
3963
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_date:error_when_exponent_lhs_range_exp_rhs_date",
3964
+    "expression": "[1..10] ** @\"2021-01-01\"",
3965
+    "expected": null,
3966
+    "expected_type": "null",
3967
+    "comparison": "exact",
3968
+    "deviation": null
3969
+  },
3970
+  {
3971
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_dateAndTime:error_when_exponent_lhs_range_exp_rhs_dateAndTime",
3972
+    "expression": "[1..10] ** @\"2021-01-01T10:10:10\"",
3973
+    "expected": null,
3974
+    "expected_type": "null",
3975
+    "comparison": "exact",
3976
+    "deviation": null
3977
+  },
3978
+  {
3979
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_dtDuration:error_when_exponent_lhs_range_exp_rhs_dtDuration",
3980
+    "expression": "[1..10] ** @\"P1D\"",
3981
+    "expected": null,
3982
+    "expected_type": "null",
3983
+    "comparison": "exact",
3984
+    "deviation": null
3985
+  },
3986
+  {
3987
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_list:error_when_exponent_lhs_range_exp_rhs_list",
3988
+    "expression": "[1..10] ** [10]",
3989
+    "expected": null,
3990
+    "expected_type": "null",
3991
+    "comparison": "exact",
3992
+    "deviation": null
3993
+  },
3994
+  {
3995
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_null:error_when_exponent_lhs_range_exp_rhs_null",
3996
+    "expression": "[1..10] ** null",
3997
+    "expected": null,
3998
+    "expected_type": "null",
3999
+    "comparison": "exact",
4000
+    "deviation": null
4001
+  },
4002
+  {
4003
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_number:error_when_exponent_lhs_range_exp_rhs_number",
4004
+    "expression": "[1..10] ** 10",
4005
+    "expected": null,
4006
+    "expected_type": "null",
4007
+    "comparison": "exact",
4008
+    "deviation": null
4009
+  },
4010
+  {
4011
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_range:error_when_exponent_lhs_range_exp_rhs_range",
4012
+    "expression": "[1..10] ** [1..10]",
4013
+    "expected": null,
4014
+    "expected_type": "null",
4015
+    "comparison": "exact",
4016
+    "deviation": null
4017
+  },
4018
+  {
4019
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_string:error_when_exponent_lhs_range_exp_rhs_string",
4020
+    "expression": "[1..10] ** \"10\"",
4021
+    "expected": null,
4022
+    "expected_type": "null",
4023
+    "comparison": "exact",
4024
+    "deviation": null
4025
+  },
4026
+  {
4027
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_time:error_when_exponent_lhs_range_exp_rhs_time",
4028
+    "expression": "[1..10] ** @\"10:10:10\"",
4029
+    "expected": null,
4030
+    "expected_type": "null",
4031
+    "comparison": "exact",
4032
+    "deviation": null
4033
+  },
4034
+  {
4035
+    "id": "0100-arithmetic:error_when_exponent_lhs_range_exp_rhs_ymDuration:error_when_exponent_lhs_range_exp_rhs_ymDuration",
4036
+    "expression": "[1..10] ** @\"P1Y\"",
4037
+    "expected": null,
4038
+    "expected_type": "null",
4039
+    "comparison": "exact",
4040
+    "deviation": null
4041
+  },
4042
+  {
35154043
     "id": "0100-arithmetic:error_when_exponent_lhs_string_exp_rhs_boolean:error_when_exponent_lhs_string_exp_rhs_boolean",
35164044
     "expression": "\"10\" ** true",
35174045
     "expected": null,
@@ -3576,6 +4104,14 @@
35764104
     "deviation": null
35774105
   },
35784106
   {
4107
+    "id": "0100-arithmetic:error_when_exponent_lhs_string_exp_rhs_range:error_when_exponent_lhs_string_exp_rhs_range",
4108
+    "expression": "\"10\" ** [1..10]",
4109
+    "expected": null,
4110
+    "expected_type": "null",
4111
+    "comparison": "exact",
4112
+    "deviation": null
4113
+  },
4114
+  {
35794115
     "id": "0100-arithmetic:error_when_exponent_lhs_string_exp_rhs_string:error_when_exponent_lhs_string_exp_rhs_string",
35804116
     "expression": "\"10\" ** \"10\"",
35814117
     "expected": null,
@@ -3664,6 +4200,14 @@
36644200
     "deviation": null
36654201
   },
36664202
   {
4203
+    "id": "0100-arithmetic:error_when_exponent_lhs_time_exp_rhs_range:error_when_exponent_lhs_time_exp_rhs_range",
4204
+    "expression": "@\"10:10:10\" ** [1..10]",
4205
+    "expected": null,
4206
+    "expected_type": "null",
4207
+    "comparison": "exact",
4208
+    "deviation": null
4209
+  },
4210
+  {
36674211
     "id": "0100-arithmetic:error_when_exponent_lhs_time_exp_rhs_string:error_when_exponent_lhs_time_exp_rhs_string",
36684212
     "expression": "@\"10:10:10\" ** \"10\"",
36694213
     "expected": null,
@@ -3752,6 +4296,14 @@
37524296
     "deviation": null
37534297
   },
37544298
   {
4299
+    "id": "0100-arithmetic:error_when_exponent_lhs_ymDuration_exp_rhs_range:error_when_exponent_lhs_ymDuration_exp_rhs_range",
4300
+    "expression": "@\"P1Y\" ** [1..10]",
4301
+    "expected": null,
4302
+    "expected_type": "null",
4303
+    "comparison": "exact",
4304
+    "deviation": null
4305
+  },
4306
+  {
37554307
     "id": "0100-arithmetic:error_when_exponent_lhs_ymDuration_exp_rhs_string:error_when_exponent_lhs_ymDuration_exp_rhs_string",
37564308
     "expression": "@\"P1Y\" ** \"10\"",
37574309
     "expected": null,
@@ -3840,6 +4392,14 @@
38404392
     "deviation": null
38414393
   },
38424394
   {
4395
+    "id": "0100-arithmetic:error_when_multiply_lhs_boolean_by_rhs_range:error_when_multiply_lhs_boolean_by_rhs_range",
4396
+    "expression": "true * [1..10]",
4397
+    "expected": null,
4398
+    "expected_type": "null",
4399
+    "comparison": "exact",
4400
+    "deviation": null
4401
+  },
4402
+  {
38434403
     "id": "0100-arithmetic:error_when_multiply_lhs_boolean_by_rhs_string:error_when_multiply_lhs_boolean_by_rhs_string",
38444404
     "expression": "true * \"10\"",
38454405
     "expected": null,
@@ -3928,6 +4488,14 @@
39284488
     "deviation": null
39294489
   },
39304490
   {
4491
+    "id": "0100-arithmetic:error_when_multiply_lhs_context_by_rhs_range:error_when_multiply_lhs_context_by_rhs_range",
4492
+    "expression": "{a: 10} * [1..10]",
4493
+    "expected": null,
4494
+    "expected_type": "null",
4495
+    "comparison": "exact",
4496
+    "deviation": null
4497
+  },
4498
+  {
39314499
     "id": "0100-arithmetic:error_when_multiply_lhs_context_by_rhs_string:error_when_multiply_lhs_context_by_rhs_string",
39324500
     "expression": "{a: 10} * \"10\"",
39334501
     "expected": null,
@@ -4016,6 +4584,14 @@
40164584
     "deviation": null
40174585
   },
40184586
   {
4587
+    "id": "0100-arithmetic:error_when_multiply_lhs_dateAndTime_by_rhs_range:error_when_multiply_lhs_dateAndTime_by_rhs_range",
4588
+    "expression": "@\"2021-01-01T10:10:10\" * [1..10]",
4589
+    "expected": null,
4590
+    "expected_type": "null",
4591
+    "comparison": "exact",
4592
+    "deviation": null
4593
+  },
4594
+  {
40194595
     "id": "0100-arithmetic:error_when_multiply_lhs_dateAndTime_by_rhs_string:error_when_multiply_lhs_dateAndTime_by_rhs_string",
40204596
     "expression": "@\"2021-01-01T10:10:10\" * \"10\"",
40214597
     "expected": null,
@@ -4104,6 +4680,14 @@
41044680
     "deviation": null
41054681
   },
41064682
   {
4683
+    "id": "0100-arithmetic:error_when_multiply_lhs_date_by_rhs_range:error_when_multiply_lhs_date_by_rhs_range",
4684
+    "expression": "@\"2021-01-01\" * [1..10]",
4685
+    "expected": null,
4686
+    "expected_type": "null",
4687
+    "comparison": "exact",
4688
+    "deviation": null
4689
+  },
4690
+  {
41074691
     "id": "0100-arithmetic:error_when_multiply_lhs_date_by_rhs_string:error_when_multiply_lhs_date_by_rhs_string",
41084692
     "expression": "@\"2021-01-01\" * \"10\"",
41094693
     "expected": null,
@@ -4184,6 +4768,14 @@
41844768
     "deviation": null
41854769
   },
41864770
   {
4771
+    "id": "0100-arithmetic:error_when_multiply_lhs_dtDuration_by_rhs_range:error_when_multiply_lhs_dtDuration_by_rhs_range",
4772
+    "expression": "@\"P1D\" * [1..10]",
4773
+    "expected": null,
4774
+    "expected_type": "null",
4775
+    "comparison": "exact",
4776
+    "deviation": null
4777
+  },
4778
+  {
41874779
     "id": "0100-arithmetic:error_when_multiply_lhs_dtDuration_by_rhs_string:error_when_multiply_lhs_dtDuration_by_rhs_string",
41884780
     "expression": "@\"P1D\" * \"10\"",
41894781
     "expected": null,
@@ -4272,6 +4864,14 @@
42724864
     "deviation": null
42734865
   },
42744866
   {
4867
+    "id": "0100-arithmetic:error_when_multiply_lhs_list_by_rhs_range:error_when_multiply_lhs_list_by_rhs_range",
4868
+    "expression": "[10] * [1..10]",
4869
+    "expected": null,
4870
+    "expected_type": "null",
4871
+    "comparison": "exact",
4872
+    "deviation": null
4873
+  },
4874
+  {
42754875
     "id": "0100-arithmetic:error_when_multiply_lhs_list_by_rhs_string:error_when_multiply_lhs_list_by_rhs_string",
42764876
     "expression": "[10] * \"10\"",
42774877
     "expected": null,
@@ -4360,6 +4960,14 @@
43604960
     "deviation": null
43614961
   },
43624962
   {
4963
+    "id": "0100-arithmetic:error_when_multiply_lhs_null_by_rhs_range:error_when_multiply_lhs_null_by_rhs_range",
4964
+    "expression": "null * [1..10]",
4965
+    "expected": null,
4966
+    "expected_type": "null",
4967
+    "comparison": "exact",
4968
+    "deviation": null
4969
+  },
4970
+  {
43634971
     "id": "0100-arithmetic:error_when_multiply_lhs_null_by_rhs_string:error_when_multiply_lhs_null_by_rhs_string",
43644972
     "expression": "null * \"10\"",
43654973
     "expected": null,
@@ -4432,6 +5040,14 @@
44325040
     "deviation": null
44335041
   },
44345042
   {
5043
+    "id": "0100-arithmetic:error_when_multiply_lhs_number_by_rhs_range:error_when_multiply_lhs_number_by_rhs_range",
5044
+    "expression": "10 * [1..10]",
5045
+    "expected": null,
5046
+    "expected_type": "null",
5047
+    "comparison": "exact",
5048
+    "deviation": null
5049
+  },
5050
+  {
44355051
     "id": "0100-arithmetic:error_when_multiply_lhs_number_by_rhs_string:error_when_multiply_lhs_number_by_rhs_string",
44365052
     "expression": "10 * \"10\"",
44375053
     "expected": null,
@@ -4448,6 +5064,102 @@
44485064
     "deviation": null
44495065
   },
44505066
   {
5067
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_boolean:error_when_multiply_lhs_range_by_rhs_boolean",
5068
+    "expression": "[1..10] * true",
5069
+    "expected": null,
5070
+    "expected_type": "null",
5071
+    "comparison": "exact",
5072
+    "deviation": null
5073
+  },
5074
+  {
5075
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_context:error_when_multiply_lhs_range_by_rhs_context",
5076
+    "expression": "[1..10] * {a: 10}",
5077
+    "expected": null,
5078
+    "expected_type": "null",
5079
+    "comparison": "exact",
5080
+    "deviation": null
5081
+  },
5082
+  {
5083
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_date:error_when_multiply_lhs_range_by_rhs_date",
5084
+    "expression": "[1..10] * @\"2021-01-01\"",
5085
+    "expected": null,
5086
+    "expected_type": "null",
5087
+    "comparison": "exact",
5088
+    "deviation": null
5089
+  },
5090
+  {
5091
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_dateAndTime:error_when_multiply_lhs_range_by_rhs_dateAndTime",
5092
+    "expression": "[1..10] * @\"2021-01-01T10:10:10\"",
5093
+    "expected": null,
5094
+    "expected_type": "null",
5095
+    "comparison": "exact",
5096
+    "deviation": null
5097
+  },
5098
+  {
5099
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_dtDuration:error_when_multiply_lhs_range_by_rhs_dtDuration",
5100
+    "expression": "[1..10] * @\"P1D\"",
5101
+    "expected": null,
5102
+    "expected_type": "null",
5103
+    "comparison": "exact",
5104
+    "deviation": null
5105
+  },
5106
+  {
5107
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_list:error_when_multiply_lhs_range_by_rhs_list",
5108
+    "expression": "[1..10] * [10]",
5109
+    "expected": null,
5110
+    "expected_type": "null",
5111
+    "comparison": "exact",
5112
+    "deviation": null
5113
+  },
5114
+  {
5115
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_null:error_when_multiply_lhs_range_by_rhs_null",
5116
+    "expression": "[1..10] * null",
5117
+    "expected": null,
5118
+    "expected_type": "null",
5119
+    "comparison": "exact",
5120
+    "deviation": null
5121
+  },
5122
+  {
5123
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_number:error_when_multiply_lhs_range_by_rhs_number",
5124
+    "expression": "[1..10] * 10",
5125
+    "expected": null,
5126
+    "expected_type": "null",
5127
+    "comparison": "exact",
5128
+    "deviation": null
5129
+  },
5130
+  {
5131
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_range:error_when_multiply_lhs_range_by_rhs_range",
5132
+    "expression": "[1..10] * [1..10]",
5133
+    "expected": null,
5134
+    "expected_type": "null",
5135
+    "comparison": "exact",
5136
+    "deviation": null
5137
+  },
5138
+  {
5139
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_string:error_when_multiply_lhs_range_by_rhs_string",
5140
+    "expression": "[1..10] * \"10\"",
5141
+    "expected": null,
5142
+    "expected_type": "null",
5143
+    "comparison": "exact",
5144
+    "deviation": null
5145
+  },
5146
+  {
5147
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_time:error_when_multiply_lhs_range_by_rhs_time",
5148
+    "expression": "[1..10] * @\"10:10:10\"",
5149
+    "expected": null,
5150
+    "expected_type": "null",
5151
+    "comparison": "exact",
5152
+    "deviation": null
5153
+  },
5154
+  {
5155
+    "id": "0100-arithmetic:error_when_multiply_lhs_range_by_rhs_ymDuration:error_when_multiply_lhs_range_by_rhs_ymDuration",
5156
+    "expression": "[1..10] * @\"P1Y\"",
5157
+    "expected": null,
5158
+    "expected_type": "null",
5159
+    "comparison": "exact",
5160
+    "deviation": null
5161
+  },
5162
+  {
44515163
     "id": "0100-arithmetic:error_when_multiply_lhs_string_by_rhs_boolean:error_when_multiply_lhs_string_by_rhs_boolean",
44525164
     "expression": "\"10\" * true",
44535165
     "expected": null,
@@ -4512,6 +5224,14 @@
45125224
     "deviation": null
45135225
   },
45145226
   {
5227
+    "id": "0100-arithmetic:error_when_multiply_lhs_string_by_rhs_range:error_when_multiply_lhs_string_by_rhs_range",
5228
+    "expression": "\"10\" * [1..10]",
5229
+    "expected": null,
5230
+    "expected_type": "null",
5231
+    "comparison": "exact",
5232
+    "deviation": null
5233
+  },
5234
+  {
45155235
     "id": "0100-arithmetic:error_when_multiply_lhs_string_by_rhs_string:error_when_multiply_lhs_string_by_rhs_string",
45165236
     "expression": "\"10\" * \"10\"",
45175237
     "expected": null,
@@ -4600,6 +5320,14 @@
46005320
     "deviation": null
46015321
   },
46025322
   {
5323
+    "id": "0100-arithmetic:error_when_multiply_lhs_time_by_rhs_range:error_when_multiply_lhs_time_by_rhs_range",
5324
+    "expression": "@\"10:10:10\" * [1..10]",
5325
+    "expected": null,
5326
+    "expected_type": "null",
5327
+    "comparison": "exact",
5328
+    "deviation": null
5329
+  },
5330
+  {
46035331
     "id": "0100-arithmetic:error_when_multiply_lhs_time_by_rhs_string:error_when_multiply_lhs_time_by_rhs_string",
46045332
     "expression": "@\"10:10:10\" * \"10\"",
46055333
     "expected": null,
@@ -4680,6 +5408,14 @@
46805408
     "deviation": null
46815409
   },
46825410
   {
5411
+    "id": "0100-arithmetic:error_when_multiply_lhs_ymDuration_by_rhs_range:error_when_multiply_lhs_ymDuration_by_rhs_range",
5412
+    "expression": "@\"P1Y\" * [1..10]",
5413
+    "expected": null,
5414
+    "expected_type": "null",
5415
+    "comparison": "exact",
5416
+    "deviation": null
5417
+  },
5418
+  {
46835419
     "id": "0100-arithmetic:error_when_multiply_lhs_ymDuration_by_rhs_string:error_when_multiply_lhs_ymDuration_by_rhs_string",
46845420
     "expression": "@\"P1Y\" * \"10\"",
46855421
     "expected": null,
@@ -4768,6 +5504,14 @@
47685504
     "deviation": null
47695505
   },
47705506
   {
5507
+    "id": "0100-arithmetic:error_when_subtract_lhs_boolean_minus_rhs_range:error_when_subtract_lhs_boolean_minus_rhs_range",
5508
+    "expression": "true - [1..10]",
5509
+    "expected": null,
5510
+    "expected_type": "null",
5511
+    "comparison": "exact",
5512
+    "deviation": null
5513
+  },
5514
+  {
47715515
     "id": "0100-arithmetic:error_when_subtract_lhs_boolean_minus_rhs_string:error_when_subtract_lhs_boolean_minus_rhs_string",
47725516
     "expression": "true - \"10\"",
47735517
     "expected": null,
@@ -4856,6 +5600,14 @@
48565600
     "deviation": null
48575601
   },
48585602
   {
5603
+    "id": "0100-arithmetic:error_when_subtract_lhs_context_minus_rhs_range:error_when_subtract_lhs_context_minus_rhs_range",
5604
+    "expression": "{a: 10} - [1..10]",
5605
+    "expected": null,
5606
+    "expected_type": "null",
5607
+    "comparison": "exact",
5608
+    "deviation": null
5609
+  },
5610
+  {
48595611
     "id": "0100-arithmetic:error_when_subtract_lhs_context_minus_rhs_string:error_when_subtract_lhs_context_minus_rhs_string",
48605612
     "expression": "{a: 10} - \"10\"",
48615613
     "expected": null,
@@ -4920,6 +5672,14 @@
49205672
     "deviation": null
49215673
   },
49225674
   {
5675
+    "id": "0100-arithmetic:error_when_subtract_lhs_dateAndTime_minus_rhs_range:error_when_subtract_lhs_dateAndTime_minus_rhs_range",
5676
+    "expression": "@\"2021-01-01T10:10:10\" - [1..10]",
5677
+    "expected": null,
5678
+    "expected_type": "null",
5679
+    "comparison": "exact",
5680
+    "deviation": null
5681
+  },
5682
+  {
49235683
     "id": "0100-arithmetic:error_when_subtract_lhs_dateAndTime_minus_rhs_string:error_when_subtract_lhs_dateAndTime_minus_rhs_string",
49245684
     "expression": "@\"2021-01-01T10:10:10\" - \"10\"",
49255685
     "expected": null,
@@ -4976,6 +5736,14 @@
49765736
     "deviation": null
49775737
   },
49785738
   {
5739
+    "id": "0100-arithmetic:error_when_subtract_lhs_date_minus_rhs_range:error_when_subtract_lhs_date_minus_rhs_range",
5740
+    "expression": "@\"2021-01-01\" - [1..10]",
5741
+    "expected": null,
5742
+    "expected_type": "null",
5743
+    "comparison": "exact",
5744
+    "deviation": null
5745
+  },
5746
+  {
49795747
     "id": "0100-arithmetic:error_when_subtract_lhs_date_minus_rhs_string:error_when_subtract_lhs_date_minus_rhs_string",
49805748
     "expression": "@\"2021-01-01\" - \"10\"",
49815749
     "expected": null,
@@ -5048,6 +5816,14 @@
50485816
     "deviation": null
50495817
   },
50505818
   {
5819
+    "id": "0100-arithmetic:error_when_subtract_lhs_dtDuration_minus_rhs_range:error_when_subtract_lhs_dtDuration_minus_rhs_range",
5820
+    "expression": "@\"P1D\" - [1..10]",
5821
+    "expected": null,
5822
+    "expected_type": "null",
5823
+    "comparison": "exact",
5824
+    "deviation": null
5825
+  },
5826
+  {
50515827
     "id": "0100-arithmetic:error_when_subtract_lhs_dtDuration_minus_rhs_string:error_when_subtract_lhs_dtDuration_minus_rhs_string",
50525828
     "expression": "@\"P1D\" - \"10\"",
50535829
     "expected": null,
@@ -5136,6 +5912,14 @@
51365912
     "deviation": null
51375913
   },
51385914
   {
5915
+    "id": "0100-arithmetic:error_when_subtract_lhs_list_minus_rhs_range:error_when_subtract_lhs_list_minus_rhs_range",
5916
+    "expression": "[10] - [1..10]",
5917
+    "expected": null,
5918
+    "expected_type": "null",
5919
+    "comparison": "exact",
5920
+    "deviation": null
5921
+  },
5922
+  {
51395923
     "id": "0100-arithmetic:error_when_subtract_lhs_list_minus_rhs_string:error_when_subtract_lhs_list_minus_rhs_string",
51405924
     "expression": "[10] - \"10\"",
51415925
     "expected": null,
@@ -5224,6 +6008,14 @@
52246008
     "deviation": null
52256009
   },
52266010
   {
6011
+    "id": "0100-arithmetic:error_when_subtract_lhs_null_minus_rhs_range:error_when_subtract_lhs_null_minus_rhs_range",
6012
+    "expression": "null - [1..10]",
6013
+    "expected": null,
6014
+    "expected_type": "null",
6015
+    "comparison": "exact",
6016
+    "deviation": null
6017
+  },
6018
+  {
52276019
     "id": "0100-arithmetic:error_when_subtract_lhs_null_minus_rhs_string:error_when_subtract_lhs_null_minus_rhs_string",
52286020
     "expression": "null - \"10\"",
52296021
     "expected": null,
@@ -5304,6 +6096,14 @@
53046096
     "deviation": null
53056097
   },
53066098
   {
6099
+    "id": "0100-arithmetic:error_when_subtract_lhs_number_minus_rhs_range:error_when_subtract_lhs_number_minus_rhs_range",
6100
+    "expression": "10 - [1..10]",
6101
+    "expected": null,
6102
+    "expected_type": "null",
6103
+    "comparison": "exact",
6104
+    "deviation": null
6105
+  },
6106
+  {
53076107
     "id": "0100-arithmetic:error_when_subtract_lhs_number_minus_rhs_string:error_when_subtract_lhs_number_minus_rhs_string",
53086108
     "expression": "10 - \"10\"",
53096109
     "expected": null,
@@ -5328,6 +6128,102 @@
53286128
     "deviation": null
53296129
   },
53306130
   {
6131
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_boolean:error_when_subtract_lhs_range_minus_rhs_boolean",
6132
+    "expression": "[1..10] - true",
6133
+    "expected": null,
6134
+    "expected_type": "null",
6135
+    "comparison": "exact",
6136
+    "deviation": null
6137
+  },
6138
+  {
6139
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_context:error_when_subtract_lhs_range_minus_rhs_context",
6140
+    "expression": "[1..10] - {a: 10}",
6141
+    "expected": null,
6142
+    "expected_type": "null",
6143
+    "comparison": "exact",
6144
+    "deviation": null
6145
+  },
6146
+  {
6147
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_date:error_when_subtract_lhs_range_minus_rhs_date",
6148
+    "expression": "[1..10] - @\"2021-01-01\"",
6149
+    "expected": null,
6150
+    "expected_type": "null",
6151
+    "comparison": "exact",
6152
+    "deviation": null
6153
+  },
6154
+  {
6155
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_dateAndTime:error_when_subtract_lhs_range_minus_rhs_dateAndTime",
6156
+    "expression": "[1..10] - @\"2021-01-01T10:10:10\"",
6157
+    "expected": null,
6158
+    "expected_type": "null",
6159
+    "comparison": "exact",
6160
+    "deviation": null
6161
+  },
6162
+  {
6163
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_dtDuration:error_when_subtract_lhs_range_minus_rhs_dtDuration",
6164
+    "expression": "[1..10] - @\"P1D\"",
6165
+    "expected": null,
6166
+    "expected_type": "null",
6167
+    "comparison": "exact",
6168
+    "deviation": null
6169
+  },
6170
+  {
6171
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_list:error_when_subtract_lhs_range_minus_rhs_list",
6172
+    "expression": "[1..10] - [10]",
6173
+    "expected": null,
6174
+    "expected_type": "null",
6175
+    "comparison": "exact",
6176
+    "deviation": null
6177
+  },
6178
+  {
6179
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_null:error_when_subtract_lhs_range_minus_rhs_null",
6180
+    "expression": "[1..10] - null",
6181
+    "expected": null,
6182
+    "expected_type": "null",
6183
+    "comparison": "exact",
6184
+    "deviation": null
6185
+  },
6186
+  {
6187
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_number:error_when_subtract_lhs_range_minus_rhs_number",
6188
+    "expression": "[1..10] - 10",
6189
+    "expected": null,
6190
+    "expected_type": "null",
6191
+    "comparison": "exact",
6192
+    "deviation": null
6193
+  },
6194
+  {
6195
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_range:error_when_subtract_lhs_range_minus_rhs_range",
6196
+    "expression": "[1..10] - [1..10]",
6197
+    "expected": null,
6198
+    "expected_type": "null",
6199
+    "comparison": "exact",
6200
+    "deviation": null
6201
+  },
6202
+  {
6203
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_string:error_when_subtract_lhs_range_minus_rhs_string",
6204
+    "expression": "[1..10] - \"10\"",
6205
+    "expected": null,
6206
+    "expected_type": "null",
6207
+    "comparison": "exact",
6208
+    "deviation": null
6209
+  },
6210
+  {
6211
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_time:error_when_subtract_lhs_range_minus_rhs_time",
6212
+    "expression": "[1..10] - @\"10:10:10\"",
6213
+    "expected": null,
6214
+    "expected_type": "null",
6215
+    "comparison": "exact",
6216
+    "deviation": null
6217
+  },
6218
+  {
6219
+    "id": "0100-arithmetic:error_when_subtract_lhs_range_minus_rhs_ymDuration:error_when_subtract_lhs_range_minus_rhs_ymDuration",
6220
+    "expression": "[1..10] - @\"P1Y\"",
6221
+    "expected": null,
6222
+    "expected_type": "null",
6223
+    "comparison": "exact",
6224
+    "deviation": null
6225
+  },
6226
+  {
53316227
     "id": "0100-arithmetic:error_when_subtract_lhs_string_minus_rhs_boolean:error_when_subtract_lhs_string_minus_rhs_boolean",
53326228
     "expression": "\"10\" - true",
53336229
     "expected": null,
@@ -5392,6 +6288,14 @@
53926288
     "deviation": null
53936289
   },
53946290
   {
6291
+    "id": "0100-arithmetic:error_when_subtract_lhs_string_minus_rhs_range:error_when_subtract_lhs_string_minus_rhs_range",
6292
+    "expression": "\"10\" - [1..10]",
6293
+    "expected": null,
6294
+    "expected_type": "null",
6295
+    "comparison": "exact",
6296
+    "deviation": null
6297
+  },
6298
+  {
53956299
     "id": "0100-arithmetic:error_when_subtract_lhs_string_minus_rhs_string:error_when_subtract_lhs_string_minus_rhs_string",
53966300
     "expression": "\"10\" - \"10\"",
53976301
     "expected": null,
@@ -5472,6 +6376,14 @@
54726376
     "deviation": null
54736377
   },
54746378
   {
6379
+    "id": "0100-arithmetic:error_when_subtract_lhs_time_minus_rhs_range:error_when_subtract_lhs_time_minus_rhs_range",
6380
+    "expression": "@\"10:10:10\" - [1..10]",
6381
+    "expected": null,
6382
+    "expected_type": "null",
6383
+    "comparison": "exact",
6384
+    "deviation": null
6385
+  },
6386
+  {
54756387
     "id": "0100-arithmetic:error_when_subtract_lhs_time_minus_rhs_string:error_when_subtract_lhs_time_minus_rhs_string",
54766388
     "expression": "@\"10:10:10\" - \"10\"",
54776389
     "expected": null,
@@ -5546,6 +6458,14 @@
55466458
   {
55476459
     "id": "0100-arithmetic:error_when_subtract_lhs_ymDuration_minus_rhs_number:error_when_subtract_lhs_ymDuration_minus_rhs_number",
55486460
     "expression": "@\"P1Y\" - 10",
6461
+    "expected": null,
6462
+    "expected_type": "null",
6463
+    "comparison": "exact",
6464
+    "deviation": null
6465
+  },
6466
+  {
6467
+    "id": "0100-arithmetic:error_when_subtract_lhs_ymDuration_minus_rhs_range:error_when_subtract_lhs_ymDuration_minus_rhs_range",
6468
+    "expression": "@\"P1Y\" - [1..10]",
55496469
     "expected": null,
55506470
     "expected_type": "null",
55516471
     "comparison": "exact",

modified crates/feel-core/tests/fixtures/1148-feel-now-function.json +8 −0

@@ -1,4 +1,12 @@
11
 [
2
+  {
3
+    "id": "1148-feel-now-function:001:decision001",
4
+    "expression": "now() instance of date and time",
5
+    "expected": true,
6
+    "expected_type": "boolean",
7
+    "comparison": "exact",
8
+    "deviation": null
9
+  },
210
   {
311
     "id": "1148-feel-now-function:002:decision002",
412
     "expression": "now(123)",