Sha256: 518c275d24c03225d49659be016c04e8fc7c2e403adf67360734bada83511c49
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
require "spec_helper" require "hamster/vector" describe Hamster::Vector do [:first, :head].each do |method| describe "##{method}" do [ [[], nil], [["A"], "A"], [%w[A B C], "A"], ].each do |values, expected| describe "on #{values.inspect}" do before do @vector = Hamster.vector(*values) end it "returns #{expected.inspect}" do @vector.send(method).should == expected end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-1.0.1.pre.rc.1 | spec/hamster/vector/first_spec.rb |