Permalink
Browse files

Cool.chr

  • Loading branch information...
1 parent 43f9e11 commit 6246bdf6136b9201725039ab8b97dbcc1bd6403a @moritz moritz committed Aug 17, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 src/core/Cool.pm
  2. +1 −1 t/spectest.data
View
3 src/core/Cool.pm
@@ -81,6 +81,9 @@ my class Cool {
method ord() {
nqp::p6box_i(nqp::ord(nqp::unbox_s(self.Str)))
}
+ method chr() {
+ self.Int.chr;
+ }
method flip() {
nqp::p6box_s(pir::box__PS(nqp::unbox_s(self.Str)).reverse)
View
2 t/spectest.data
@@ -599,7 +599,7 @@ integration/advent2009-day04.t
integration/advent2009-day05.t
integration/advent2009-day06.t
integration/advent2009-day07.t
-# integration/advent2009-day08.t # err: Method 'chr' not found for invocant of class 'Str'
+integration/advent2009-day08.t
# integration/advent2009-day09.t # err: Not enough positional parameters passed
# integration/advent2009-day10.t # err: Method 'at_key' not found for invocant of class 'Any'
integration/advent2009-day11.t

0 comments on commit 6246bdf

Please sign in to comment.