Sha256: cd58ead879098e726ac7bcb401bc8aabdaee6991ed3f53fca7de817ed230cba0

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe Hamster::List do

  describe ".[]" do

    before do
      @list = Hamster::List["A", "B", "C"]
    end

    it "is equivalent to repeatedly using #cons" do
      @list.should eql(Hamster::List.new.cons("C").cons("B").cons("A"))
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hamster-0.1.8 spec/hamster/list/construction_spec.rb