23 characters symbolify(i) body, no cheating.


On Jul 11, 2008, at 8:17 AM, Matthew Moss wrote:

>    1000.times do |i|
>      s = symbolify(i)
>      raise "Not a string!"  unless s.is_a? String
>      raise "Invalid chars!" unless s.delete("?*()-").empty?
>
>      x = eval(s)
>      raise "Decode failed!" unless i == x
>    end