1
1
use v6 ;
2
2
use Test ;
3
- plan 47 ;
3
+ plan 45 ;
4
4
5
5
# L<S12/Enumerations/"Two built-in enumerations are">
6
6
@@ -46,6 +46,8 @@ isa_ok(~Bool::True, Str);
46
46
isa_ok(~ Bool ::False , Str );
47
47
is (~ Bool ::True , ' Bool::True' , ' Bool stringification (True)' );
48
48
is (~ Bool ::False , ' Bool::False' , ' Bool stringification (False)' );
49
+ is Bool ::True . Str , ' Bool::True' , ' True.Str' ;
50
+ is Bool ::False . Str , ' Bool::False' , ' False.Str' ;
49
51
50
52
51
53
# numification - interaction with +
@@ -55,12 +57,7 @@ is(+Bool::True, '1', 'True numifies to 1');
55
57
isa_ok(+ Bool ::True , Int , ' True numifies to an Int' );
56
58
is (+ Bool ::False , ' 0' , ' False numifies to 0' );
57
59
isa_ok(+ Bool ::False , Int , ' False numifies to an Int' );
58
- # stringification
59
- # ?rakudo 2 todo '~Bool'
60
- is (~ Bool ::True , ' True' , ' True stringifies to True' );
61
- is (~ Bool ::False , ' False' , ' False stringifies to False' );
62
- is Bool ::True . Str , ' Bool::True' , ' True.Str' ;
63
- is Bool ::False . Str , ' Bool::False' , ' False.Str' ;
60
+
64
61
65
62
# Arithmetic operations
66
63
my $ bool = Bool ::False ;
0 commit comments