Sha256: 4b9d89fb04c31c78d560432be6d98ef583054db629fd6c810a6268f536888b41
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
require File.expand_path('../../spec_helper', File.dirname(__FILE__)) require 'hamster/stack' require 'hamster/list' describe Hamster::Stack do describe "#to_list" do [ [[], []], [["A"], ["A"]], [["A", "B", "C"], ["C", "B", "A"]], ].each do |values, expected| describe "on #{values.inspect}" do before do @stack = Hamster.stack(*values) @result = @stack.to_list end it "returns #{expected.inspect}" do @result.should == Hamster.list(*expected) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.2.7 | spec/hamster/stack/to_list_spec.rb |
hamster-0.2.6 | spec/hamster/stack/to_list_spec.rb |