Files
zen/core/expression/tests/data/unary.csv
T
stefan-gorules 7b17575a66 fix: negative value checks (#89)
* fix: negative value checks;

* offset unary fix;

* disable unary csv test;
2023-09-19 11:23:31 +02:00

944 B

1expression (string);input (json 5);output (json 5)
2# Boolean
3# Number
4> 5;{$: 10};true
5< 10;{$: 5};true
6>= 10;{$: 10};true
7<= 5;{$: 5};true
8[-10..0];{$: 5};true
9(-10..0];{$: 5};false
10[-10..0);{$: 5};true
11(-10..0);{$: 5};false
12[-15..-5];{$: 5};false
13[-5..5];{$: 5};true
14[-6..6];{$: 5};false
15[-5..5];{$: 5};true
16[0..0];{$: 5};true
17> 5 and < 10;{$: 5};true
18<= 10 and > 5;{$: 5};true
19>= 10 or < 5;{$: 10};true
20<= 5 or >= 10;{$: 10};true
21[-10..0] and > -5;{$: -5};true
22(-10..0] or > 0;{$: 5};true
23[-10..0) and > -5;{$: -5};false
24(-10..0) or > 0;{$: 5};true
25[-15..-5] and <= -10;{$: -5};false
26[-5..5] or > 0;{$: 5};true
27[-5..5] or < 0;{$: 5};false
28[-5..5] and > 0;{$: 5};true
29[0..0] and < 5;{$: 5};true
30> 10 or < -5;{$: 5};true
31> 10< -5;{$: 5};true
32<= -10 and >= -15;{$: -5};true
33# String
34'GB''US';{$: 'US'};true
35'GB''US';{$: 'FR'};false