aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/export.moon31
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/inputs/export.moon b/spec/inputs/export.moon
index 9c906d5..9a494d9 100644
--- a/spec/inputs/export.moon
+++ b/spec/inputs/export.moon
@@ -43,3 +43,34 @@ export Constant = switch value
43 when "better" then 2 43 when "better" then 2
44 when "best" then 3 44 when "best" then 3
45 45
46export x
47
48f if a then b
49f do 123
50f switch a
51 when b then c
52f [i for i = 1,10]
53f for i = 1,10 do i
54f {k,v for k,v in pairs tb}
55f for k,v in pairs tb do k,v
56f while a do true
57f with a
58 .b = 123
59f a?.b
60f a\b
61f class A
62
63_ = "#{if a then b}"
64_ = "#{do 123}"
65_ = "#{switch a
66 when b then c}"
67_ = "#{[i for i = 1,10]}"
68_ = "#{for i = 1,10 do i}"
69_ = "#{{k,v for k,v in pairs tb}}"
70_ = "#{for k,v in pairs tb do k,v}"
71_ = "#{while a do true}"
72_ = "#{with a
73 .b = 123}"
74_ = "#{a?.b}"
75_ = "#{a\b}"
76_ = "#{class A}"