Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test for ords()
  • Loading branch information
moritz committed Jul 10, 2011
1 parent a4c379f commit 5eaae4f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions S32-str/ords.t
@@ -0,0 +1,14 @@
use v6;
use Test;
plan 6;

# L<S32::Str/Str/ords>

is ords('').elems, 0, 'ords(empty string)';
is ''.ords.elems, 0, '<empty string>.ords';
is ords('Cool()').join(', '), '67, 111, 111, 108, 40, 41',
'ords(normal string)';
is 'Cool()'.ords.join(', '), '67, 111, 111, 108, 40, 41',
'<normal string>.ords';
is ords(42).join(', '), '52, 50', 'ords() on integers';
is 42.ords.join(', '), '52, 50', '.ords on integers';

0 comments on commit 5eaae4f

Please sign in to comment.