Skip to content

Commit

Permalink
fix one test, and remove two wrong ones
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 13, 2012
1 parent ea734f1 commit 1a88785
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions S12-enums/pseudo-functional.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 13;
plan 11;

# L<S12/Anonymous Mixin Roles using C<but> or C<does>/enumeration supplies the type name as a coercion>

Expand All @@ -18,9 +18,7 @@ is day(Tue), day(3), 'day(Tue) same as day(3)';

my $x = 'Today' but day(Tue);

ok $x ~~ day, 'day(Tue) is a day';
ok $x ~~ Tue, 'day(Tue) is Tue';
ok $x.does(Tue), 'day(Tue).does(Tue)';
ok $x.day ~~ day, 'day(Tue).day is a day';
ok $x.day == Tue, 'day(Tue) == Tue';
ok day($x) == Tue, 'day(day(Tue)) == Tue';
ok $x.Tue, 'day(Tue).Tue';
Expand Down

0 comments on commit 1a88785

Please sign in to comment.