添加说明文档,为cangjie层添加单元测试

This commit is contained in:
2026-03-21 16:03:24 +08:00
parent a4196e53f9
commit 8c216ef9e3
19 changed files with 432 additions and 50 deletions

View File

@ -0,0 +1 @@
return (...)

View File

@ -0,0 +1 @@
return table.concat(data, ',')

View File

@ -0,0 +1 @@
data = {1,2,3}

View File

@ -0,0 +1 @@
return tostring(g or 'nil')

View File

@ -0,0 +1,2 @@
local s = io.read('*a')
return s

View File

@ -0,0 +1 @@
io.write("Data from lua")

1
test/scripts/mylib.lua Normal file
View File

@ -0,0 +1 @@
function foo() return 42 end

View File

@ -0,0 +1 @@
print("Hello Cangjie")

View File

@ -0,0 +1 @@
error("oops")

View File

@ -0,0 +1 @@
g = 123

View File

@ -0,0 +1 @@
return "hello"

View File

@ -0,0 +1 @@
for i=1,10 print(i) end