Skip to content

Commit

Permalink
RT #72834
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Mar 30, 2012
1 parent 931b743 commit aa81a8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions S13-type-casting/methods.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 12;
plan 13;

# L<S13/Type Casting/"whose name is a declared type, it is taken as a coercion
# to that type">
Expand Down Expand Up @@ -30,8 +30,10 @@ ok +$o == 1.2, 'method Numeric takes care of correct numification';
}
is RT69378str.new.a, 'RT #69378', 'call to RT69378str.new properly initializes $.a';
is RT69378str.new.Str, 'RT #69378', 'call to .Str works on "class is Str"';
#?niecza skip 'coercion syntax'
#?niecza 2 skip 'coercion syntax'
is Str(RT69378str.new), 'RT #69378', 'Str(...) coercion syntax calls our .Str too';
# RT #72834
ok Int() == 0, 'Int()';
}

is 1.Str.Str, "1", ".Str can be called on Str";
Expand Down

0 comments on commit aa81a8b

Please sign in to comment.