diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 14:53:09 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 14:53:09 +0100 |
commit | 512f4c0b46ea5cc359e673b7379cd81925863121 (patch) | |
tree | 1e72167d8d63f44109719db9643d4c0445b17d57 /tests/require.lua | |
parent | 0aa030db022c57947afbae3b97038a403973e3cd (diff) | |
download | lanes-master.tar.gz lanes-master.tar.bz2 lanes-master.zip |
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] |