summaryrefslogtreecommitdiff
path: root/test/prism/fixtures/unparser/corpus/semantic/while.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/fixtures/unparser/corpus/semantic/while.txt')
-rw-r--r--test/prism/fixtures/unparser/corpus/semantic/while.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/prism/fixtures/unparser/corpus/semantic/while.txt b/test/prism/fixtures/unparser/corpus/semantic/while.txt
new file mode 100644
index 0000000000..a55dcc52fc
--- /dev/null
+++ b/test/prism/fixtures/unparser/corpus/semantic/while.txt
@@ -0,0 +1,25 @@
+a until b? {}
+
+until b? {}
+ a
+end
+
+foo = bar while foo
+
+a until b && a { }
+
+while a = b
+ a
+end
+
+a until b(<<-FOO) do
+FOO
+ c
+end
+
+module A
+ foo = exp
+ while foo
+ foo = bar
+ end
+end