diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-06 15:37:44 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-13 18:15:46 +0200 |
| commit | 2c69c99da47b1d708606da713433608c73ecdb88 (patch) | |
| tree | c355f51dd8cfc261ab8589cf00d49eedf0c4da0b /deep_test | |
| parent | c9db798d184ceb8b3913a2f15d454f20ea978864 (diff) | |
| download | lanes-2c69c99da47b1d708606da713433608c73ecdb88.tar.gz lanes-2c69c99da47b1d708606da713433608c73ecdb88.tar.bz2 lanes-2c69c99da47b1d708606da713433608c73ecdb88.zip | |
New lane generator option opt_tbl.name
Diffstat (limited to 'deep_test')
| -rw-r--r-- | deep_test/deeptest.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/deep_test/deeptest.lua b/deep_test/deeptest.lua index 09b638c..33de003 100644 --- a/deep_test/deeptest.lua +++ b/deep_test/deeptest.lua | |||
| @@ -7,7 +7,7 @@ local dt = lanes.require "deep_test" | |||
| 7 | local test_deep = true | 7 | local test_deep = true |
| 8 | local test_clonable = true | 8 | local test_clonable = true |
| 9 | local test_uvtype = "string" | 9 | local test_uvtype = "string" |
| 10 | local nupvals = _VERSION == "Lua 5.4" and 3 or 1 | 10 | local nupvals = _VERSION == "Lua 5.4" and 2 or 1 |
| 11 | 11 | ||
| 12 | local makeUserValue = function( obj_) | 12 | local makeUserValue = function( obj_) |
| 13 | if test_uvtype == "string" then | 13 | if test_uvtype == "string" then |
| @@ -43,8 +43,7 @@ local performTest = function( obj_) | |||
| 43 | obj_:setuv( 1, makeUserValue( obj_)) | 43 | obj_:setuv( 1, makeUserValue( obj_)) |
| 44 | -- lua 5.4 supports multiple uservalues of arbitrary types | 44 | -- lua 5.4 supports multiple uservalues of arbitrary types |
| 45 | if nupvals > 1 then | 45 | if nupvals > 1 then |
| 46 | -- keep uv #2 as nil | 46 | obj_:setuv( 2, "ENDUV") |
| 47 | obj_:setuv( 3, "ENDUV") | ||
| 48 | end | 47 | end |
| 49 | 48 | ||
| 50 | local t = | 49 | local t = |
