-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathop_and.json
More file actions
51 lines (51 loc) · 1.41 KB
/
op_and.json
File metadata and controls
51 lines (51 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"operator_and": [
{
"expr": "true && true && true",
"result": { "kind": "Boolean", "value": true }
},
{ "expr": "true && true", "result": { "kind": "Boolean", "value": true } },
{
"expr": "true && true && false",
"result": { "kind": "Boolean", "value": false }
},
{
"expr": "true && false && true",
"result": { "kind": "Boolean", "value": false }
},
{
"expr": "false && true",
"result": { "kind": "Boolean", "value": false }
},
{
"expr": "false && false",
"result": { "kind": "Boolean", "value": false }
},
{ "expr": "true && 1 && 2", "result": { "kind": "Number", "value": 2.0 } },
{ "expr": "true && 0 && 2", "result": { "kind": "Number", "value": 0.0 } },
{
"expr": "true && 'a' && 'b'",
"result": { "kind": "String", "value": "b" }
},
{
"expr": "true && '' && 'asdf'",
"result": { "kind": "String", "value": "" }
},
{ "expr": "null && true", "result": { "kind": "Null", "value": null } },
{
"expr": "test && 123",
"contexts": { "test": {} },
"result": { "kind": "Number", "value": 123.0 }
},
{
"expr": "test && 456",
"contexts": { "test": {} },
"result": { "kind": "Number", "value": 456.0 }
},
{
"expr": "test && 789",
"contexts": { "test": [] },
"result": { "kind": "Number", "value": 789.0 }
}
]
}