[ \&ret1234, { map { $_ => 0.25 } 1 .. 4 } ],
[ \&retinif, { 2 => 1 } ],
[ \&ret1234, { map { $_ => 0.25 } 1 .. 4 } ],
[ \&retinif, { 2 => 1 } ],
- is_deeply($r, $_->[1], 'branch test ' . $i);
+ my $exp = ref $_->[1] ? $_->[1] : { $_->[1] => 1 };
+ is_deeply($r, $exp, 'branch test ' . $i);