summaryrefslogtreecommitdiff
path: root/test/prism/fixtures/unparser/corpus/literal/case.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/fixtures/unparser/corpus/literal/case.txt')
-rw-r--r--test/prism/fixtures/unparser/corpus/literal/case.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/prism/fixtures/unparser/corpus/literal/case.txt b/test/prism/fixtures/unparser/corpus/literal/case.txt
new file mode 100644
index 0000000000..c455fd7c39
--- /dev/null
+++ b/test/prism/fixtures/unparser/corpus/literal/case.txt
@@ -0,0 +1,37 @@
+case
+when bar
+ baz
+when baz
+ bar
+end
+case foo
+when bar
+when baz
+ bar
+end
+case foo
+when bar
+ baz
+when baz
+ bar
+end
+case foo
+when bar, baz
+ :other
+end
+case foo
+when *bar
+ :value
+end
+case foo
+when bar
+ baz
+else
+ :foo
+end
+case foo
+when *bar | baz
+end
+case foo
+when *bar.baz=1
+end