Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S02-builtin_data_types/bool.t] Update for new Enum .gist/.Str rules
  • Loading branch information
sorear committed Aug 3, 2011
1 parent 1640c4b commit fc26150
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions S02-builtin_data_types/bool.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 47;
plan 49;

#L<S12/Enumerations/"Two built-in enumerations are">

Expand Down Expand Up @@ -44,10 +44,13 @@ ok(!Bool::False, 'False works');
# tests Bool stringification - interaction with ~
isa_ok(~Bool::True, Str);
isa_ok(~Bool::False, Str);
is(~Bool::True, 'Bool::True', 'Bool stringification (True)');
is(~Bool::False, 'Bool::False', 'Bool stringification (False)');
is Bool::True.Str, 'Bool::True', 'True.Str';
is Bool::False.Str, 'Bool::False', 'False.Str';
#?rakudo 4 todo 'using older spec'
is(~Bool::True, 'True', 'Bool stringification (True)');
is(~Bool::False, 'False', 'Bool stringification (False)');
is Bool::True.Str, 'True', 'True.Str';
is Bool::False.Str, 'False', 'False.Str';
is Bool::True.gist, 'Bool::True', 'True.gist';
is Bool::False.gist, 'Bool::False', 'False.gist';


# numification - interaction with +
Expand Down

0 comments on commit fc26150

Please sign in to comment.