diff options
author | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
commit | 60a979e224f26117f5be82bfca757a2483cef0fd (patch) | |
tree | 7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/whitespace.lua | |
parent | a19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff) | |
download | yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2 yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip |
fix test.
Diffstat (limited to 'spec/outputs/whitespace.lua')
-rw-r--r-- | spec/outputs/whitespace.lua | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/spec/outputs/whitespace.lua b/spec/outputs/whitespace.lua new file mode 100644 index 0000000..1bc4503 --- /dev/null +++ b/spec/outputs/whitespace.lua | |||
@@ -0,0 +1,98 @@ | |||
1 | local _ = { | ||
2 | 1, | ||
3 | 2 | ||
4 | } | ||
5 | _ = { | ||
6 | 1, | ||
7 | 2 | ||
8 | } | ||
9 | _ = { | ||
10 | 1, | ||
11 | 2 | ||
12 | } | ||
13 | _ = { | ||
14 | 1, | ||
15 | 2 | ||
16 | } | ||
17 | _ = { | ||
18 | 1, | ||
19 | 2 | ||
20 | } | ||
21 | _ = { | ||
22 | something(1, 2, 4, 5, 6), | ||
23 | 3, | ||
24 | 4, | ||
25 | 5 | ||
26 | } | ||
27 | _ = { | ||
28 | a(1, 2, 3), | ||
29 | 4, | ||
30 | 5, | ||
31 | 6, | ||
32 | 1, | ||
33 | 2, | ||
34 | 3 | ||
35 | } | ||
36 | _ = { | ||
37 | b(1, 2, 3, 4, 5, 6), | ||
38 | 1, | ||
39 | 2, | ||
40 | 3, | ||
41 | 1, | ||
42 | 2, | ||
43 | 3 | ||
44 | } | ||
45 | _ = { | ||
46 | 1, | ||
47 | 2, | ||
48 | 3 | ||
49 | } | ||
50 | _ = { | ||
51 | c(1, 2, 3) | ||
52 | } | ||
53 | hello(1, 2, 3, 4, 1, 2, 3, 4, 4, 5) | ||
54 | x(1, 2, 3, 4, 5, 6) | ||
55 | hello(1, 2, 3, world(4, 5, 6, 5, 6, 7, 8)) | ||
56 | hello(1, 2, 3, world(4, 5, 6, 5, 6, 7, 8), 9, 9) | ||
57 | _ = { | ||
58 | hello(1, 2), | ||
59 | 3, | ||
60 | 4, | ||
61 | 5, | ||
62 | 6 | ||
63 | } | ||
64 | local x = { | ||
65 | hello(1, 2, 3, 4, 5, 6, 7), | ||
66 | 1, | ||
67 | 2, | ||
68 | 3, | ||
69 | 4 | ||
70 | } | ||
71 | if hello(1, 2, 3, world, world) then | ||
72 | print("hello") | ||
73 | end | ||
74 | if hello(1, 2, 3, world, world) then | ||
75 | print("hello") | ||
76 | end | ||
77 | a(one, two, three) | ||
78 | b(one, two, three) | ||
79 | c(one, two, three, four) | ||
80 | local v | ||
81 | v = function() | ||
82 | return a, b, c | ||
83 | end | ||
84 | local v1, v2, v3 | ||
85 | v1, v2, v3 = function() | ||
86 | return a | ||
87 | end, b, c | ||
88 | local a, b, c, d, e, f = 1, f2({ | ||
89 | abc = abc | ||
90 | }), 3, 4, f5(abc), 6 | ||
91 | for a, b, c in pairs(tb) do | ||
92 | print(a, b, c) | ||
93 | end | ||
94 | for i = 1, 10, -1 do | ||
95 | print(i) | ||
96 | end | ||
97 | local a, b, c | ||
98 | return nil | ||