diff options
| author | Philipp Janda <siffiejoe@gmx.net> | 2015-01-21 14:34:11 +0100 |
|---|---|---|
| committer | Philipp Janda <siffiejoe@gmx.net> | 2015-01-21 14:34:11 +0100 |
| commit | c57750c925553f627701f2c4897ee6bd6488c7c1 (patch) | |
| tree | 465e24fcc87ab8a49baf3e4dec380871275cd486 /tests/test.lua | |
| parent | 866cb79f65c844b3fcfa99d2caa4bf19930dbc6d (diff) | |
| download | lua-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-x | tests/test.lua | 3 |
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 | }) |
| 681 | print(pcall(mod.tolstring, t)) | 681 | print(pcall(mod.tolstring, t)) |
| 682 | |||
| 683 | ___'' | ||
| 684 | print(mod.buffer()) | ||
| 682 | ___'' | 685 | ___'' |
| 683 | 686 | ||
