diff options
author | Li Jin <dragon-fly@qq.com> | 2022-07-07 16:22:17 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-07-07 16:22:17 +0800 |
commit | 1eb9ed57de854aa996614b7016bac04a68105389 (patch) | |
tree | 27b46d4a5482ac0ab542d18548c0691aa8115d93 /spec/outputs | |
parent | b26b0c3e7061cd629500994e26fa162ac2668373 (diff) | |
download | yuescript-1eb9ed57de854aa996614b7016bac04a68105389.tar.gz yuescript-1eb9ed57de854aa996614b7016bac04a68105389.tar.bz2 yuescript-1eb9ed57de854aa996614b7016bac04a68105389.zip |
add spec.
Diffstat (limited to 'spec/outputs')
-rw-r--r-- | spec/outputs/macro.lua | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/spec/outputs/macro.lua b/spec/outputs/macro.lua index b3085bb..5917f43 100644 --- a/spec/outputs/macro.lua +++ b/spec/outputs/macro.lua | |||
@@ -6,6 +6,25 @@ end | |||
6 | if (f1() and f2() and f3()) then | 6 | if (f1() and f2() and f3()) then |
7 | print("OK") | 7 | print("OK") |
8 | end | 8 | end |
9 | local item | ||
10 | do | ||
11 | local _src_, _dst_ | ||
12 | do | ||
13 | _dst_ = { | ||
14 | pos = { }, | ||
15 | flags = flags:tonumber() | ||
16 | } | ||
17 | do | ||
18 | _src_ = self | ||
19 | _dst_.id = _src_.id | ||
20 | _dst_.connections = _src_.connections | ||
21 | _dst_.pos.x = _src_.pos.x | ||
22 | _dst_.pos.y = _src_.pos.y | ||
23 | _dst_.pos.z = _src_.pos.z | ||
24 | end | ||
25 | item = _dst_ | ||
26 | end | ||
27 | end | ||
9 | if (x == "Apple" or x == "Pig" or x == "Dog") then | 28 | if (x == "Apple" or x == "Pig" or x == "Dog") then |
10 | print("exist") | 29 | print("exist") |
11 | end | 30 | end |
@@ -258,7 +277,7 @@ print((setmetatable({ | |||
258 | return 998 | 277 | return 998 |
259 | end | 278 | end |
260 | })) | 279 | })) |
261 | print("current line: " .. tostring(261)); | 280 | print("current line: " .. tostring(271)); |
262 | -- TODO | 281 | -- TODO |
263 | do | 282 | do |
264 | print(1) | 283 | print(1) |