diff options
Diffstat (limited to 'tests/require.lua')
-rw-r--r-- | tests/require.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/require.lua b/tests/require.lua index b194af1..f017ddf 100644 --- a/tests/require.lua +++ b/tests/require.lua | |||
@@ -19,14 +19,14 @@ local function a_lane() | |||
19 | local lanes = require "lanes" | 19 | local lanes = require "lanes" |
20 | assert( lanes and lanes.gen ) | 20 | assert( lanes and lanes.gen ) |
21 | 21 | ||
22 | local h= lanes.gen( function() return 42 end ) () | 22 | local h= lanes.gen( { name = 'auto' }, function() return 42 end ) () |
23 | local v= h[1] | 23 | local v= h[1] |
24 | 24 | ||
25 | return v==42 | 25 | return v==42 |
26 | end | 26 | end |
27 | 27 | ||
28 | -- string and table for Lanes itself, package to be able to require in the lane, math for the actual work | 28 | -- string and table for Lanes itself, package to be able to require in the lane, math for the actual work |
29 | local gen= lanes.gen( "math,package,string,table", {package={}},a_lane ) | 29 | local gen= lanes.gen( "math,package,string,table", { name = 'auto', package={} },a_lane ) |
30 | 30 | ||
31 | local h= gen() | 31 | local h= gen() |
32 | local ret= h[1] | 32 | local ret= h[1] |