Commit 4b572425 authored by matteo-cristino's avatar matteo-cristino Committed by Jaromil
Browse files

now it is possible to branch on 'found'

parent 75478fff
......@@ -25,7 +25,9 @@
-- nop to terminate IF blocks
When("done", function() end)
IfWhen("'' is found", function(n) have(n) end)
IfWhen("'' is found", function(n)
ZEN.assert(ACK[n] ~= nil, "Cannot find object: "..n)
end)
IfWhen("'' is not found", function(n)
ZEN.assert(ACK[n] == nil, "Object should not be found: "..n)
end)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment