Changeset 22471 for t

Show
Ignore:
Timestamp:
10/01/08 09:53:20 (2 months ago)
Author:
azawawi
Message:

[t/spec] Fudged S29-context/eval.t for rakudo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S29-context/eval.t

    r21417 r22471  
    1111=end pod 
    1212 
     13#?rakudo skip "Null PMC access in find_method()" 
     14 
     15#?rakudo emit =begin unimpl 
     16 
    1317# eval should evaluate the code in the lexical scope of eval's caller 
    1418sub make_eval_closure { my $a = 5; sub ($s) { eval $s } }; 
    1519is(make_eval_closure()('$a'), 5, 'eval runs code in the proper lexical scope'); 
    1620 
     21#?rakudo emit =end unimpl 
     22 
    1723is(eval('5'), 5, 'simple eval works and returns the value'); 
    1824my $foo = 1234; 
     25#?rakudo skip "unimpl Null PMC access in find_method" 
    1926is(eval('$foo'), $foo, 'simple eval using variable defined outside'); 
    2027 
    2128# traps die? 
     29#?rakudo skip "unimpl Null PMC access in type()" 
    2230ok(!eval('die; 1'), "eval can trap die"); 
    2331 
    2432ok(!eval('my @a = (1); @a<0>'), "eval returns undef on syntax error"); 
    2533 
     34#?rakudo skip "unimpl Null PMC access in type()" 
    2635ok(!eval('use Poison; 1'), "eval can trap a fatal use statement"); 
    2736 
     
    3241 
    3342# L<S04/Exception handlers/Perl 6's eval function only evaluates strings, not blocks.> 
     43#?rakudo skip "unimpl Null PMC access in find_method" 
    3444dies_ok({eval {42}}, 'block eval is gone');