Permalink
Browse files

[ord_and_chr.t] added tests for ord and chr methods

git-svn-id: http://svn.pugscode.org/pugs@22316 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent b019359 commit d2ed6c4bf7ecc188b26c8c32d3f1d7e174b92837 masak committed Sep 23, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 S29-conversions/ord_and_chr.t
@@ -121,7 +121,7 @@ my @maps = (
"\o03", 3,
);
-plan 32+@maps;
+plan 34+@maps;
for @maps -> $char, $code {
my $descr = "\\{$code}{$code >= 32 ?? " == '{$char}'" !! ""}";
@@ -134,4 +134,5 @@ for 0..31 -> $code {
is ord($char), $code, "ord(chr($code)) is $code";
}
-
+is 'A'.ord, 65, "there's a .ord method";
+is 65.chr, 'A', "there's a .chr method";

0 comments on commit d2ed6c4

Please sign in to comment.