diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2021-06-28 08:50:19 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2021-06-28 08:50:19 +0200 |
commit | cce1a1d235322cf51d62305aee89c7bfa64e9905 (patch) | |
tree | 10bb1071d27c4e675bd96d842ddfb0c84284a403 /tests/require.lua | |
parent | 909470be9f7ec1dd2d09ae1a371d69c9c652e957 (diff) | |
download | lanes-cce1a1d235322cf51d62305aee89c7bfa64e9905.tar.gz lanes-cce1a1d235322cf51d62305aee89c7bfa64e9905.tar.bz2 lanes-cce1a1d235322cf51d62305aee89c7bfa64e9905.zip |
fixed some tests
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 656a7dd..1730ce4 100644 --- a/tests/require.lua +++ b/tests/require.lua | |||
@@ -7,7 +7,7 @@ lanes = require "lanes" | |||
7 | lanes.configure{with_timers = false} | 7 | lanes.configure{with_timers = false} |
8 | 8 | ||
9 | local function a_lane() | 9 | local function a_lane() |
10 | print "IN A LANE" | 10 | print "IN A LANE" |
11 | -- To require 'math' we still actually need to have it initialized for | 11 | -- To require 'math' we still actually need to have it initialized for |
12 | -- the lane. | 12 | -- the lane. |
13 | -- | 13 | -- |
@@ -16,7 +16,7 @@ local function a_lane() | |||
16 | assert( math.sqrt(4)==2 ) | 16 | assert( math.sqrt(4)==2 ) |
17 | 17 | ||
18 | assert( lanes==nil ) | 18 | assert( lanes==nil ) |
19 | local lanes = require "lanes".configure{with_timers = false} | 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( function() return 42 end ) () |