spec/hamster/set/inspect_spec.rb in hamster-0.2.2 vs spec/hamster/set/inspect_spec.rb in hamster-0.2.3

- old
+ new

@@ -1,27 +1,11 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require 'hamster/set' -describe Hamster::List do +describe Hamster::Set do describe "#inspect" do - - describe "doesn't run out of stack space on a really big" do - - it "stream" do - @list = Hamster.interval(0, STACK_OVERFLOW_DEPTH) - end - - it "list" do - @list = (0...STACK_OVERFLOW_DEPTH).reduce(Hamster.list) { |list, i| list.cons(i) } - end - - after do - @list.inspect - end - - end [ [[], "{}"], [["A"], "{\"A\"}"], [[1, 2, 3], "{1, 2, 3}"]