aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2015-01-21 14:34:11 +0100
committerPhilipp Janda <siffiejoe@gmx.net>2015-01-21 14:34:11 +0100
commitc57750c925553f627701f2c4897ee6bd6488c7c1 (patch)
tree465e24fcc87ab8a49baf3e4dec380871275cd486 /tests/test.lua
parent866cb79f65c844b3fcfa99d2caa4bf19930dbc6d (diff)
downloadlua-compat-5.3-c57750c925553f627701f2c4897ee6bd6488c7c1.tar.gz
lua-compat-5.3-c57750c925553f627701f2c4897ee6bd6488c7c1.tar.bz2
lua-compat-5.3-c57750c925553f627701f2c4897ee6bd6488c7c1.zip
backport Lua 5.2/5.3 buffer API for Lua 5.1
Diffstat (limited to 'tests/test.lua')
-rwxr-xr-xtests/test.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 98259fe..83e174e 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -679,5 +679,8 @@ local t = setmetatable({}, {
679 __tostring = function(v) return nil end 679 __tostring = function(v) return nil end
680}) 680})
681print(pcall(mod.tolstring, t)) 681print(pcall(mod.tolstring, t))
682
683___''
684print(mod.buffer())
682___'' 685___''
683 686