aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/codes_from_doc.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-05-26 11:07:38 +0800
committerLi Jin <dragon-fly@qq.com>2025-05-26 11:07:38 +0800
commita91135ce512f907ed085d9aac147d8fcad356406 (patch)
treee53408fe0a88ef71ea33d14bcb0b6eeb3a344810 /spec/outputs/codes_from_doc.lua
parent4ba4c90e711c6204aa40e38347c5a5a076d9370e (diff)
downloadyuescript-a91135ce512f907ed085d9aac147d8fcad356406.tar.gz
yuescript-a91135ce512f907ed085d9aac147d8fcad356406.tar.bz2
yuescript-a91135ce512f907ed085d9aac147d8fcad356406.zip
Added assignment expression for switch syntax.
Diffstat (limited to 'spec/outputs/codes_from_doc.lua')
-rw-r--r--spec/outputs/codes_from_doc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua
index c7a2d50..d857dec 100644
--- a/spec/outputs/codes_from_doc.lua
+++ b/spec/outputs/codes_from_doc.lua
@@ -1234,7 +1234,7 @@ if "Robert" == name then
1234elseif "Dan" == name or "Daniel" == name then 1234elseif "Dan" == name or "Daniel" == name then
1235 print("Your name, it's Dan") 1235 print("Your name, it's Dan")
1236else 1236else
1237 print("I don't know about your name") 1237 print("I don't know about you with name " .. tostring(name))
1238end 1238end
1239local b = 1 1239local b = 1
1240local next_number 1240local next_number
@@ -3450,7 +3450,7 @@ if "Robert" == name then
3450elseif "Dan" == name or "Daniel" == name then 3450elseif "Dan" == name or "Daniel" == name then
3451 print("Your name, it's Dan") 3451 print("Your name, it's Dan")
3452else 3452else
3453 print("I don't know about your name") 3453 print("I don't know about you with name " .. tostring(name))
3454end 3454end
3455local b = 1 3455local b = 1
3456local next_number 3456local next_number