summaryrefslogtreecommitdiff
path: root/test/prism/fixtures/unparser/corpus/literal/pattern.txt
blob: 7cfaa4dc67f4288a6d1b7b34c467e9dd1cff2212 (plain)
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
case foo
in A[1, 2, *a, 3] then
  true
in [1, 2, ] then
  y
in A(x:) then
  true
in {**a} then
  true
in {} if true then
  true
in [x, y, *] then
  true
in {a: 1, aa: 2} then
  true
in {} then
  true
in {**nil} then
  true
in {"a": 1} then
  true
in 1 | 2 then
  true
in 1 => a then
  true
in ^x then
  true
in 1
in 2 then
  true
else
  true
end
case foo
in A[1, 2, *a, 3]
end
case foo
in A
else
end
1 in [a]