Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add at least one test for the SomeType(...) coercion syntax; didn't f…
…ind any existing ones to turn on.
  • Loading branch information
jnthn committed Feb 18, 2012
1 parent 239bf2f commit 85e742b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S13-type-casting/methods.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 11;
plan 12;

# L<S13/Type Casting/"whose name is a declared type, it is taken as a coercion
# to that type">
Expand Down Expand Up @@ -30,6 +30,8 @@ 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'
is Str(RT69378str.new), 'RT #69378', 'Str(...) coercion syntax calls our .Str too';
}

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

0 comments on commit 85e742b

Please sign in to comment.