Changeset 22902 for t

Show
Ignore:
Timestamp:
11/06/08 19:06:37 (2 months ago)
Author:
moritz
Message:

[t/spec] don't rely on a lexicals working in eval() when testing ro-ness of
subroutine arguments. Also TODO the now failing test for rakudo.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S06-traits/misc.t

    r22461 r22902  
    1717# note: many of these errors can be detected at compile time, so need 
    1818# eval_dies_ok instead of dies_ok  
     19#?rakudo todo 'TODO: catch modification of subroutine arg' 
    1920eval_dies_ok ' 
     21    my $tmp = 1; 
    2022    sub mods_param ($x) { $x++; } 
    21     mods_param($foo) 
     23    mods_param($tmp) 
    2224    ', 
    2325    'can\'t modify parameter, constant by default';