1 ## our_shell: ysh
2 ## oils_failures_allowed: 1
3
4 #### tuple literal and (( conflict
5 if ((0,0) < (0,1)) { echo yes }
6 ## STDOUT:
7 yes
8 ## END
9
10 #### Empty tuple
11 var t = ()
12 echo length=$[len(t)]
13 ## STDOUT:
14 length=0
15 ## END
16
17 #### Singleton tuple should be empty list
18
19 var t = [42]
20 echo len=$[len(t)]
21
22 #var t1 = 1,
23 var t2 = (42,)
24
25 ## status: 2
26 ## STDOUT:
27 len=1
28 ## END