diff options
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/definition/method.lua | 18 | ||||
-rw-r--r-- | server/test/definition/table.lua | 4 |
2 files changed, 20 insertions, 2 deletions
diff --git a/server/test/definition/method.lua b/server/test/definition/method.lua index 96b77a60..2829f5b7 100644 --- a/server/test/definition/method.lua +++ b/server/test/definition/method.lua @@ -21,3 +21,21 @@ end function mt:<!m4!>() end ]] + +TEST [[ +function mt:m3() + self:<?m4?>() +end +function mt:<!m4!>() +end +]] + +TEST [[ +local mt +mt.__index = mt +function mt:<!method1!>() +end + +local obj = setmetatable({}, mt) +obj:<?method1?>() +]] diff --git a/server/test/definition/table.lua b/server/test/definition/table.lua index 08c4c98e..b4585d16 100644 --- a/server/test/definition/table.lua +++ b/server/test/definition/table.lua @@ -97,7 +97,7 @@ t.<!after!> = a TEST[[ local t = { - <!x!> = 1, + <!insert!> = 1, } -t.<?x?>() +t.<?insert?>() ]] |