Sha256: d8fc7c5e71eee0bd0adafb8ef6689a40198df3917e3e4aadc917b450896fe9d4
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Hamster::List do [:size, :length].each do |method| describe "##{method}" do describe "on a really big list" do before do @list = Hamster.interval(0, 10000) end it "doesn't run out of stack space" do @list.size end end [ [[], 0], [["A"], 1], [["A", "B", "C"], 3], ].each do |values, expected| describe "on #{values.inspect}" do before do @list = Hamster.list(*values) end it "returns #{expected}" do @list.send(method).should == expected end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.1.14 | spec/hamster/list/size_spec.rb |