6 lines
217 B
Lua
6 lines
217 B
Lua
|
|
-- The purpose of this test case is to demonstrate that
|
||
|
|
-- basic metatable operations on non-table types work.
|
||
|
|
-- i.e. that s.sub(s,...) could be used in place of string.sub(s,...)
|
||
|
|
local s = "hello"
|
||
|
|
print(s:sub(2,4))
|