mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
samples: add Terra samples
source: https://github.com/zdevito/terra/tree/master/tests
This commit is contained in:
12
samples/Terra/antiquote1.t
Normal file
12
samples/Terra/antiquote1.t
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
function omgfunc()
|
||||
return 2
|
||||
end
|
||||
|
||||
terra foo()
|
||||
return 1 + [{omgfunc()}] + [omgfunc()]
|
||||
end
|
||||
|
||||
local test = require("test")
|
||||
test.eq(foo(),5)
|
||||
Reference in New Issue
Block a user