aboutsummaryrefslogtreecommitdiff
path: root/tests/require.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 14:53:09 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 14:53:09 +0100
commit512f4c0b46ea5cc359e673b7379cd81925863121 (patch)
tree1e72167d8d63f44109719db9643d4c0445b17d57 /tests/require.lua
parent0aa030db022c57947afbae3b97038a403973e3cd (diff)
downloadlanes-master.tar.gz
lanes-master.tar.bz2
lanes-master.zip
Give a name to all lanes in the testsHEADmaster
Diffstat (limited to 'tests/require.lua')
-rw-r--r--tests/require.lua4
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
26end 26end
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
29local gen= lanes.gen( "math,package,string,table", {package={}},a_lane ) 29local gen= lanes.gen( "math,package,string,table", { name = 'auto', package={} },a_lane )
30 30
31local h= gen() 31local h= gen()
32local ret= h[1] 32local ret= h[1]