Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[bool.t] test stringification more precisely
  • Loading branch information
moritz committed Sep 24, 2010
1 parent 29b04a9 commit 885149f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions S02-builtin_data_types/bool.t
Expand Up @@ -44,11 +44,9 @@ ok(!Bool::False, 'False works');
# tests Bool stringification - interaction with ~
isa_ok(~Bool::True, Str);
isa_ok(~Bool::False, Str);
ok(~Bool::True, 'stringified True works');
#?rakudo todo '~Bool'
ok(~Bool::False, 'stringified False is true');
# NOTE. We don't try to freeze ~True into '1'
# and ~False into '' as pugs does now. Maybe we should (?!)
is(~Bool::True, 'Bool::True', 'Bool stringification (True)');
is(~Bool::False, 'Bool::False', 'Bool stringification (False)');


# numification - interaction with +
ok(+Bool::True ~~ Numeric);
Expand Down

0 comments on commit 885149f

Please sign in to comment.