Skip to content

Commit

Permalink
Bool is now an enum with base type Int
Browse files Browse the repository at this point in the history
Fixes RT #72580
  • Loading branch information
niner authored and jnthn committed Nov 23, 2015
1 parent f1df147 commit a4f8e29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions S02-types/bool.t
Expand Up @@ -59,8 +59,8 @@ ok(+Bool::False ~~ Numeric);
isa-ok(+Bool::True, Int, 'True numifies to an Int');
isa-ok(+Bool::False, Int, 'False numifies to an Int');

is(Bool::True.Int, '1', 'True Intifies to 1');
is(Bool::False.Int, '0', 'False Intifies to 1');
ok(Bool::True.Int == 1, 'True Intifies to 1');
ok(Bool::False.Int == 0, 'False Intifies to 0');

is(+Bool::True, '1', 'True numifies to 1');
is(+Bool::False, '0', 'False numifies to 0');
Expand Down Expand Up @@ -97,7 +97,6 @@ is(--$bool, Bool::False, 'Decrement of Bool::False produces Bool::False');
}

# RT #72580
#?rakudo todo 'RT #72580'
{
ok True ~~ Int, "True ~~ Int";
ok Bool ~~ Int, "Bool ~~ Int";
Expand Down

0 comments on commit a4f8e29

Please sign in to comment.