aboutsummaryrefslogtreecommitdiff
path: root/tests/appendud.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-06-05 16:03:22 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2025-06-05 16:03:22 +0200
commitbfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8 (patch)
tree00f6633878b21dda6cad1177d5619a501b4ac0a4 /tests/appendud.lua
parentf73702bcf4372a149b8b01a512c0e086b1e679e2 (diff)
downloadlanes-bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8.tar.gz
lanes-bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8.tar.bz2
lanes-bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8.zip
Change lane:join() return values
* when no error is raised in the lane, lane:join() now precedes the lane returned values with true * lane body is no longer forced to return something when used with join() * adjusted all relevant unit tests accordingly
Diffstat (limited to 'tests/appendud.lua')
-rw-r--r--tests/appendud.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/appendud.lua b/tests/appendud.lua
index f6f99c1..2a8c8ce 100644
--- a/tests/appendud.lua
+++ b/tests/appendud.lua
@@ -49,7 +49,7 @@ assert(not err)
49-- test 49-- test
50-- print("t:join()") 50-- print("t:join()")
51a,b,c = t[1],t[2],t[3] -- Need to explicitly wait for the thread, since 'ipairs()' does not 51a,b,c = t[1],t[2],t[3] -- Need to explicitly wait for the thread, since 'ipairs()' does not
52--a,b,c = t:join() -- Need to explicitly wait for the thread, since 'ipairs()' does not 52--r,a,b,c = t:join() -- Need to explicitly wait for the thread, since 'ipairs()' does not
53 -- value the '__index' metamethod (wouldn't it be cool if it did..?) 53 -- value the '__index' metamethod (wouldn't it be cool if it did..?)
54 54
55print(a,b,c) 55print(a,b,c)