diff options
Diffstat (limited to 'test/prism/fixtures/unparser/corpus/literal/pattern.txt')
-rw-r--r-- | test/prism/fixtures/unparser/corpus/literal/pattern.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/prism/fixtures/unparser/corpus/literal/pattern.txt b/test/prism/fixtures/unparser/corpus/literal/pattern.txt new file mode 100644 index 0000000000..7cfaa4dc67 --- /dev/null +++ b/test/prism/fixtures/unparser/corpus/literal/pattern.txt @@ -0,0 +1,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] |