aboutsummaryrefslogtreecommitdiff
path: root/tests/func_is_string.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/func_is_string.lua')
-rw-r--r--tests/func_is_string.lua12
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 @@
1require "lanes"
2
3local options = {globals = { b = 666 }}
4
5-- local gen1 = lanes.gen("*", "dofile('fibonacci.lua')")
6local gen2 = lanes.gen(options, "return b")
7
8-- fibLane = gen1()
9retLane1, retLane2 = gen2(), gen2()
10-- fibLane:join()
11
12print( retLane1[1], retLane2[1])