Sha256: 5d53854a7f2a8490cfc20a2fa7760187efb0628f88cad6b328fbfabbc8753e9a
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/mega/lisp.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'mega/lisp.rb' require 'test/unit' # fixture class T include Lisp (def accumulate (fun, x, list) (if (null? list) x else (accumulate fun, (fun.call x, (car list)), (cdr list)) end) end) end # test class TC_Lisp < Test::Unit::TestCase include Lisp def test_accumulate t = T.new t.accumulate( proc{ |x,y| x+y }, 0, [1,2,3] ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/mega/test_lisp.rb |