Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct a test and re-fudge construction.t (only one we lost is relat…
…ed to Seq).
  • Loading branch information
jnthn committed Jul 9, 2011
1 parent 85b83d5 commit 14975bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S12-construction/construction.t
Expand Up @@ -24,8 +24,7 @@ is OwnConstr.in_own, 0, "own constructor was not called";

ok OwnConstr.own ~~ OwnConstr, "own construction instantiated its class";
is OwnConstr.own.x, 42, "attribute was set from our constructor";
#?rakudo todo 'unknown'
is OwnConstr.in_own, 1, "own constructor was actually called";
is OwnConstr.in_own, 2, "own constructor was actually called";


# L<"http://www.mail-archive.com/perl6-language@perl.org/msg20241.html">
Expand Down Expand Up @@ -73,6 +72,7 @@ is Foo.new("a string").a, 'a string', "our own 'new' was called";

my $o = $f(<a b>);
isa_ok $o, SeqAttr, 'Created SeqAttr object';
#?rakudo todo 'Seq'
isa_ok $o.x, Seq, '...with a Seq attribute';
is ($o.x)[0], 'a', '...with the right first element';
is ($o.x)[1], 'b', '...and the right second element.';
Expand All @@ -89,6 +89,7 @@ is Foo.new("a string").a, 'a string', "our own 'new' was called";
}

# RT #76476
#?rakudo skip 'RT 76476, augment'
{
use MONKEY_TYPING;
class MonkeyNew { has $.x is rw };
Expand All @@ -97,7 +98,6 @@ is Foo.new("a string").a, 'a string', "our own 'new' was called";
self.bless(*, :x('called'));
}
};
#?rakudo todo 'RT 76476'
is MonkeyNew.new().x, 'called', 'monkey-typed .new() method is called';
}

Expand Down

0 comments on commit 14975bd

Please sign in to comment.