Sha256: 5161db2dfc5a29e624dc26f5816ee3f0ee927f20470a8ea5511b35c3ffc47dc2
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Hamster::List do describe "#head" do it "initially returns nil" do Hamster::List.new.head.should be_nil end it "returns the first item in the list" do Hamster::List.new.cons("A").head.should == "A" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.1.8 | spec/hamster/list/car_spec.rb |