Skip to content

Commit

Permalink
test that defined() is a listop, RT #76448
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Mar 31, 2012
1 parent d36d5ce commit eff0660
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S32-scalar/defined.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 54;
plan 56;

# L<S32::Basics/Mu/=item defined>

Expand Down Expand Up @@ -135,4 +135,8 @@ my %a = (a => 1);
ok defined(%a{"a"}), "defined on a hash with parens (1)";
ok !defined(%a{"b"}), "defined on a hash with parens (2)";

# RT #76448
ok defined('a' => 5) ~~ Bool, 'defined is a listop, not a prefix op';
ok &defined, '&defined is available';

# vim: ft=perl6

0 comments on commit eff0660

Please sign in to comment.