Changeset 22903 for t

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

[t/spec] another test for ro-ness of arguments.

Files:
1 modified

Legend:

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

    r22902 r22903  
    33use Test; 
    44 
    5 plan 13; 
     5plan 14; 
    66 
    77=begin description 
     
    1717# note: many of these errors can be detected at compile time, so need 
    1818# eval_dies_ok instead of dies_ok  
     19# 
     20# test twice, once with assignment and once with increment, rakudo 
     21# used to catch the first but not the latter. 
     22# 
    1923#?rakudo todo 'TODO: catch modification of subroutine arg' 
    2024eval_dies_ok ' 
     
    2529    'can\'t modify parameter, constant by default'; 
    2630     
     31eval_dies_ok ' 
     32    my $tmp = 1; 
     33    sub mods_param ($x) { $x = 1; } 
     34    mods_param($tmp) 
     35    ', 
     36    'can\'t modify parameter, constant by default'; 
    2737 
    2838# is readonly