Changeset 22701 for t

Show
Ignore:
Timestamp:
10/22/08 22:59:52 (3 months ago)
Author:
moritz
Message:

[t] move instance.t to spec/, some small updates.
Also updated deprecated-syntax.pod

Location:
t
Files:
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • t/deprecated-syntax.pod

    r21899 r22701  
    6767Some tests rely on C<$?PUGS_BACKEND> and similar variables. Since they are not 
    6868specced, they cause failures on other implementations. Either remove these 
    69 variables alltogether, or at enclose them in C<eval '...'>. 
     69variables alltogether, or fudge them by prepending C<#?pugs emit> on every 
     70such line. 
    7071 
    7172=head2 "my" in pointy block signatures 
  • t/spec/S12-methods/instance.t

    r21719 r22701  
    4444    my $val; 
    4545    lives_ok { 
    46         #eval '$val = $foo.noargs.()'; 
    47         #die $! if $!; 
    48         die 'cannot parse "val = $foo.noargs.()"' 
     46        $val = $foo.noargs.(); 
    4947    }, "... '.' + parentheses after method", :todo<bug>; 
    5048    is($val, 42, '... we got the value correctly', :todo<feature>); 
     
    5452    my $val; 
    5553    lives_ok { 
    56         #eval '$val = $foo.noargs .()'; 
    57         #die $! if $!; 
    58         die 'cannot parse "$foo.noargs .()"' 
     54        $val = $foo.noargs .(); 
    5955    }, "... <space> + '.' + parentheses after method", :todo<bug>; 
    6056    is($val, 42, '... we got the value correctly', :todo<feature>); 
     
    8682        method b () { 1 } 
    8783    } 
    88     dies_ok( { Zoo.new.a }, "can't call current object methods on lexical data structures", :todo<bug>); 
    89     dies_ok( { Zoo.new.c }, "meth(%h) is not a valid method call syntax", :todo<bug>); 
     84    dies_ok( { Zoo.new.a }, "can't call current object methods on lexical data structures"); 
     85    dies_ok( { Zoo.new.c }, "meth(%h) is not a valid method call syntax"); 
    9086} 
    9187