From: "ara.t.howard" Date: 2008-07-12T05:41:54+09:00 Subject: Re: Symbolify (#169) On Jul 11, 2008, at 12:57 PM, Matthew Moss wrote: > Anyway, here's another test: > > nums = (0...1000).sort_by { rand } > strs = nums.map { |n| symbolify(n) } > > strs.zip(nums).sort_by { rand }.each do |str, num| > res = eval(str) > raise "Not a string!" unless str.is_a? String > raise "Invalid chars!" unless str.delete("?*()-").empty? > raise "Decode failed!" unless res == num > end > > puts "Passed!" 52 chars for this attm a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama