- Timestamp:
- 10/22/08 22:59:52 (3 months ago)
- Location:
- t
- Files:
-
- 1 modified
- 1 moved
-
deprecated-syntax.pod (modified) (1 diff)
-
spec/S12-methods/instance.t (moved) (moved from t/oo/methods/instance.t) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/deprecated-syntax.pod
r21899 r22701 67 67 Some tests rely on C<$?PUGS_BACKEND> and similar variables. Since they are not 68 68 specced, they cause failures on other implementations. Either remove these 69 variables alltogether, or at enclose them in C<eval '...'>. 69 variables alltogether, or fudge them by prepending C<#?pugs emit> on every 70 such line. 70 71 71 72 =head2 "my" in pointy block signatures -
t/spec/S12-methods/instance.t
r21719 r22701 44 44 my $val; 45 45 lives_ok { 46 #eval '$val = $foo.noargs.()'; 47 #die $! if $!; 48 die 'cannot parse "val = $foo.noargs.()"' 46 $val = $foo.noargs.(); 49 47 }, "... '.' + parentheses after method", :todo<bug>; 50 48 is($val, 42, '... we got the value correctly', :todo<feature>); … … 54 52 my $val; 55 53 lives_ok { 56 #eval '$val = $foo.noargs .()'; 57 #die $! if $!; 58 die 'cannot parse "$foo.noargs .()"' 54 $val = $foo.noargs .(); 59 55 }, "... <space> + '.' + parentheses after method", :todo<bug>; 60 56 is($val, 42, '... we got the value correctly', :todo<feature>); … … 86 82 method b () { 1 } 87 83 } 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"); 90 86 } 91 87
