From e1fb0ca515c7b4e79b78cdc8b0352718a1b03dc4 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 8 Jan 2025 09:38:01 +0800 Subject: Updated spec codes. --- spec/outputs/codes_from_doc.lua | 12 ++++++------ spec/outputs/codes_from_doc_zh.lua | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'spec') diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index e2bba8e..5c262d3 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua @@ -39,7 +39,7 @@ local apple = setmetatable({ } }) if (getmetatable(apple) ~= nil) then - p(apple.color, getmetatable(apple).__index) + p(apple.size, apple.color, getmetatable(apple).__index) end local _ud83c_udf1b = "ๆœˆไน‹่„šๆœฌ" _module_0["๐ŸŒ›"] = _ud83c_udf1b @@ -59,11 +59,11 @@ do end local funcA funcA = function() - return "assign the Yue defined variable" + return "fail to assign to the Yue defined variable" end local function funcB() end funcB = function() - return "assign the Lua defined variable" + return "assign to the Lua defined variable" end -- raw Lua codes insertion if cond then @@ -2045,7 +2045,7 @@ local apple = setmetatable({ } }) if (getmetatable(apple) ~= nil) then - p(apple.color, getmetatable(apple).__index) + p(apple.size, apple.color, getmetatable(apple).__index) end local _ud83c_udf1b = "ๆœˆไน‹่„šๆœฌ" _module_0["๐ŸŒ›"] = _ud83c_udf1b @@ -2065,11 +2065,11 @@ do end local funcA funcA = function() - return "assign the Yue defined variable" + return "fail to assign to the Yue defined variable" end local function funcB() end funcB = function() - return "assign the Lua defined variable" + return "assign to the Lua defined variable" end -- raw Lua codes insertion if cond then diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua index 4839525..c6d5388 100644 --- a/spec/outputs/codes_from_doc_zh.lua +++ b/spec/outputs/codes_from_doc_zh.lua @@ -39,7 +39,7 @@ local apple = setmetatable({ } }) if (getmetatable(apple) ~= nil) then - p(apple.color, getmetatable(apple).__index) + p(apple.size, apple.color, getmetatable(apple).__index) end local _ud83c_udf1b = "ๆœˆไน‹่„šๆœฌ" _module_0["๐ŸŒ›"] = _ud83c_udf1b @@ -59,11 +59,11 @@ do end local funcA funcA = function() - return "่ฎฟ้—ฎๆœˆไน‹่„šๆœฌๅฎšไน‰็š„ๅ˜้‡" + return "ๆ— ๆณ•่ฎฟ้—ฎๅฎ็”Ÿๆˆๆœˆไน‹่„šๆœฌ้‡Œๅฎšไน‰็š„ๅ˜้‡" end local function funcB() end funcB = function() - return "่ฎฟ้—ฎLuaไปฃ็ ้‡Œๅฎšไน‰็š„ๅ˜้‡" + return "่ฎฟ้—ฎๅฎ็”ŸๆˆLuaไปฃ็ ้‡Œๅฎšไน‰็š„ๅ˜้‡" end -- ๆ’ๅ…ฅๅŽŸๅง‹Luaไปฃ็  if cond then @@ -2039,7 +2039,7 @@ local apple = setmetatable({ } }) if (getmetatable(apple) ~= nil) then - p(apple.color, getmetatable(apple).__index) + p(apple.size, apple.color, getmetatable(apple).__index) end local _ud83c_udf1b = "ๆœˆไน‹่„šๆœฌ" _module_0["๐ŸŒ›"] = _ud83c_udf1b @@ -2059,11 +2059,11 @@ do end local funcA funcA = function() - return "่ฎฟ้—ฎๆœˆไน‹่„šๆœฌๅฎšไน‰็š„ๅ˜้‡" + return "ๆ— ๆณ•่ฎฟ้—ฎๅฎ็”Ÿๆˆๆœˆไน‹่„šๆœฌ้‡Œๅฎšไน‰็š„ๅ˜้‡" end local function funcB() end funcB = function() - return "่ฎฟ้—ฎLuaไปฃ็ ้‡Œๅฎšไน‰็š„ๅ˜้‡" + return "่ฎฟ้—ฎๅฎ็”ŸๆˆLuaไปฃ็ ้‡Œๅฎšไน‰็š„ๅ˜้‡" end -- ๆ’ๅ…ฅๅŽŸๅง‹Luaไปฃ็  if cond then -- cgit v1.2.3-55-g6feb