diff options
Diffstat (limited to 'testes/attrib.lua')
| -rw-r--r-- | testes/attrib.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testes/attrib.lua b/testes/attrib.lua index d8b6e0f3..8a3462ea 100644 --- a/testes/attrib.lua +++ b/testes/attrib.lua | |||
| @@ -300,6 +300,12 @@ else | |||
| 300 | assert(_ENV.x == "lib2-v2" and _ENV.y == DC"lib2-v2") | 300 | assert(_ENV.x == "lib2-v2" and _ENV.y == DC"lib2-v2") |
| 301 | assert(lib2.id("x") == true) -- a different "id" implementation | 301 | assert(lib2.id("x") == true) -- a different "id" implementation |
| 302 | 302 | ||
| 303 | for _, len in ipairs{0, 10, 39, 40, 41, 1000} do | ||
| 304 | local str = string.rep("a", len) | ||
| 305 | local str1 = lib2.newstr(str) | ||
| 306 | assert(str == str1) | ||
| 307 | end | ||
| 308 | |||
| 303 | -- test C submodules | 309 | -- test C submodules |
| 304 | local fs, ext = require"lib1.sub" | 310 | local fs, ext = require"lib1.sub" |
| 305 | assert(_ENV.x == "lib1.sub" and _ENV.y == DC"lib1") | 311 | assert(_ENV.x == "lib1.sub" and _ENV.y == DC"lib1") |
| @@ -447,7 +453,7 @@ do | |||
| 447 | end | 453 | end |
| 448 | 454 | ||
| 449 | 455 | ||
| 450 | -- test of large float/integer indices | 456 | -- test of large float/integer indices |
| 451 | 457 | ||
| 452 | -- compute maximum integer where all bits fit in a float | 458 | -- compute maximum integer where all bits fit in a float |
| 453 | local maxint = math.maxinteger | 459 | local maxint = math.maxinteger |
