Sha256: a70bffc7208fa7b7b4832113e4fae3106b901539b6cb86598d16a691873bba8a
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
require 'spec_helper' module Alf describe Lispy do include Lispy let(:input){[ {:tested => 1, :other => "b"}, {:tested => 30, :other => "a"}, ]} let(:expected){[ {:tested => 30, :other => "a", :upcase => "A"}, ]} it "should allow chaining operators 'ala' LISP" do operator = (extend \ (restrict input, lambda{ tested > 10 }), :upcase => lambda{ other.upcase }) operator.to_a.should == expected end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
alf-0.9.3 | spec/unit/test_lispy.rb |
alf-0.9.2 | spec/unit/test_lispy.rb |
alf-0.9.1 | spec/unit/test_lispy.rb |
alf-0.9.0 | spec/lispy_spec.rb |