diff options
Diffstat (limited to 'tests/func_is_string.lua')
-rw-r--r-- | tests/func_is_string.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/func_is_string.lua b/tests/func_is_string.lua new file mode 100644 index 0000000..98ea62b --- /dev/null +++ b/tests/func_is_string.lua | |||
@@ -0,0 +1,12 @@ | |||
1 | require "lanes" | ||
2 | |||
3 | local options = {globals = { b = 666 }} | ||
4 | |||
5 | -- local gen1 = lanes.gen("*", "dofile('fibonacci.lua')") | ||
6 | local gen2 = lanes.gen(options, "return b") | ||
7 | |||
8 | -- fibLane = gen1() | ||
9 | retLane1, retLane2 = gen2(), gen2() | ||
10 | -- fibLane:join() | ||
11 | |||
12 | print( retLane1[1], retLane2[1]) | ||