Changeset 22461 for t

Show
Ignore:
Timestamp:
09/29/08 23:07:21 (2 months ago)
Author:
moritz
Message:

[t] merge xx-uncategorized/optional_copy.t into S06-traits/misc.t, and moved
lexical-and-in-inner-block.t to spec/

Location:
t
Files:
1 added
1 removed
1 modified
1 moved

Legend:

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

    r22127 r22461  
    33use Test; 
    44 
    5 plan 12; 
     5plan 13; 
    66 
    77=begin description 
     
    4545is($foo, 1, 'pass by value works'); 
    4646 
     47# same test with default value 
     48sub boom ($arg is copy = 0) { $arg++ } 
     49 
     50lives_ok { boom(42) }, "can modify a copy"; 
     51 
     52 
    4753# is ref 
    4854#?rakudo skip 'is ref' 
     
    6167ok(eval('sub my_format (*@data is context(Item)) { }; 1'), "is context - compile check"); 
    6268 
     69 
     70 
    6371# To do - check that is context actually works 
    6472# vim: ft=perl6