Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 301 Bytes
use v6;
use Test;
plan 3;
#L<S03/"Smart matching"/Cool Hash hash entry existence>
{
my %h = (moep => 'foo', bar => Mu);
ok ('moep' ~~ %h), 'Cool ~~ Hash (+, True)';
ok ('bar' ~~ %h), 'Cool ~~ Hash (+, False)';
ok !('foo' ~~ %h), 'Cool ~~ Hash (-)';
}
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.