mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
update existing test suite usage of "when" statements to include captures
This commit is contained in:
parent
98cd3f2213
commit
b59ee83979
6 changed files with 9 additions and 9 deletions
|
@ -46,7 +46,7 @@ function check_terminate_conditions()
|
|||
|
||||
function check_it(name: string, s: opaque of Broker::Store)
|
||||
{
|
||||
when ( local r = Broker::keys(s) )
|
||||
when [name, s] ( local r = Broker::keys(s) )
|
||||
{
|
||||
check_terminate_conditions();
|
||||
print fmt("%s keys result: %s", name, r);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
function print_keys(a: any)
|
||||
{
|
||||
when ( local s = Broker::keys(a) )
|
||||
when [a] ( local s = Broker::keys(a) )
|
||||
{
|
||||
print "keys", s;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue