update existing test suite usage of "when" statements to include captures

This commit is contained in:
Vern Paxson 2022-01-07 14:54:06 -08:00
parent 98cd3f2213
commit b59ee83979
6 changed files with 9 additions and 9 deletions

View file

@ -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);

View file

@ -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;
}