Skip to content

Commit 139f600

Browse files
author
Tadeusz Sośnierz
committed
Add tests for RT #76446
1 parent 5f51953 commit 139f600

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

S02-builtin_data_types/bool.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,18 @@ is Bool::False.Str, 'Bool::False', 'False.Str';
5151

5252

5353
# numification - interaction with +
54-
#?niecza 4 skip "Numeric et al"
54+
#?niecza 6 skip "Numeric et al"
5555
ok(+Bool::True ~~ Numeric);
5656
ok(+Bool::False ~~ Numeric);
5757
isa_ok(+Bool::True, Int, 'True numifies to an Int');
5858
isa_ok(+Bool::False, Int, 'False numifies to an Int');
5959

60+
is(Bool::True.Int, '1', 'True Intifies to 1');
61+
is(Bool::False.Int, '0', 'False Intifies to 1');
62+
6063
is(+Bool::True, '1', 'True numifies to 1');
6164
is(+Bool::False, '0', 'False numifies to 0');
6265

63-
6466
# Arithmetic operations
6567
my $bool = Bool::False;
6668
is(++$bool, Bool::True, 'Increment of Bool::False produces Bool::True');

0 commit comments

Comments
 (0)