Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.316 kB
use v6;
use Test;
plan 3;
#L<S03/"Smart matching"/Scalar Hash hash entry existence>
{
my %h = (moep => 'foo', bar => Mu);
ok ('moep' ~~ %h), 'Scalar ~~ Hash (+, True)';
ok ('bar' ~~ %h), 'Scalar ~~ Hash (+, False)';
ok !('foo' ~~ %h), 'Scalar ~~ Hash (-)';
}
done;
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.