Is the second of these two tests supposed to fail?

my %hash = ( bar => 'baz', quux => 'quuz' );
ok(defined(%hash{"bar"}), "hash subscript");
ok(!defined(%hash{"bargho"}), "non-existent hash subscript") or
    diag("expected undef; got { %hash{'bagho'} }");


-- 
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/

Reply via email to