aboutsummaryrefslogtreecommitdiff
path: root/tests/errhangtest.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-20 10:58:06 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-20 10:58:06 +0200
commit08040747494fe7839d2ab049e37f8e23fb8141b4 (patch)
tree62dbbc9227d61e7447ad66e377b5c544c3bf118d /tests/errhangtest.lua
parent742cfdd2f9009ed12d7109e152df8c760851a58a (diff)
downloadlanes-08040747494fe7839d2ab049e37f8e23fb8141b4.tar.gz
lanes-08040747494fe7839d2ab049e37f8e23fb8141b4.tar.bz2
lanes-08040747494fe7839d2ab049e37f8e23fb8141b4.zip
linda:limit errors on limits < 1
Diffstat (limited to '')
-rw-r--r--tests/errhangtest.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/errhangtest.lua b/tests/errhangtest.lua
index 811601e..84de8c6 100644
--- a/tests/errhangtest.lua
+++ b/tests/errhangtest.lua
@@ -39,7 +39,10 @@ if true then
39 print(pcall(linda.send, linda, 'test', t_in)) 39 print(pcall(linda.send, linda, 'test', t_in))
40 local k,t_out = linda:receive('test') -- read the contents successfully sent 40 local k,t_out = linda:receive('test') -- read the contents successfully sent
41 t_out.fun() 41 t_out.fun()
42 -- TODO: t_out should contain a single entry, as [fun] = fun should have been discarded because functions are not acceptable keys 42 -- t_out should contain a single entry, as [fun] = fun should have been discarded because functions are not acceptable keys
43 local count = 0
44 for k,v in pairs(t_out) do count = count + 1 end
45 assert(count == 1)
43 print "OK" 46 print "OK"
44end 47end
45 48