Permalink
Browse files

[ord_and_chr.t] added tests for multi-arg variants of ord and chr

git-svn-id: http://svn.pugscode.org/pugs@22347 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 3ceaedb commit e6dc364d98869ef342dccf1a27fa370f51ec5926 masak committed Sep 24, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 S29-conversions/ord_and_chr.t
@@ -121,7 +121,7 @@ my @maps = (
"\o03", 3,
);
-plan 34+@maps;
+plan 36+@maps;
for @maps -> $char, $code {
my $descr = "\\{$code}{$code >= 32 ?? " == '{$char}'" !! ""}";
@@ -136,3 +136,7 @@ for 0..31 -> $code {
is 'A'.ord, 65, "there's a .ord method";
is 65.chr, 'A', "there's a .chr method";
+
+#?rakudo 2 skip 'multi-arg variants of ord and chr not in place yet'
+is ord('hello'), [104, 101, 108, 108, 111], 'ord works with longer strings';
+is chr(104, 101, 108, 108, 111), 'hello', 'chr works with a list of ints';

0 comments on commit e6dc364

Please sign in to comment.