summaryrefslogtreecommitdiff
path: root/tests/func_is_string.lua
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2011-01-04 21:31:17 +0100
committerBenoit Germain <bnt.germain@gmail.com>2011-01-04 21:31:17 +0100
commit79e46938c5d8daf164ab2d934f668fa27b32e4cf (patch)
tree407761f25bbdc3d5b2066a705dcbcf8711690242 /tests/func_is_string.lua
parented07b457b6b45ece85d367dc8b89bf3c040abd9a (diff)
downloadlanes-79e46938c5d8daf164ab2d934f668fa27b32e4cf.tar.gz
lanes-79e46938c5d8daf164ab2d934f668fa27b32e4cf.tar.bz2
lanes-79e46938c5d8daf164ab2d934f668fa27b32e4cf.zip
Take all code from Asko Kauppi's SVN server, and push it here so that the github repository becomes the official Lanes source codebase.
Note that Asko's SVN server holds version 2.0.9, whereas this is version 2.0.10, but I don't see any real need to update SVN if it is to become deprecated. Next steps: - upgrade the rockspec to the latest version - make the html help available online somewhere Signed-off-by: Benoit Germain <bnt.germain@gmail.com>
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])