Sha256: 5e66fc38230123c84c4a03cd591c3e987341d2e8449a04db04fb97a797053849

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

describe :readline_history_size, :shared => true do
  it "returns the size of the history" do
    Readline::HISTORY.send(@method).should == 0
    Readline::HISTORY.push("1", "2", "")
    Readline::HISTORY.send(@method).should == 3

    Readline::HISTORY.pop
    Readline::HISTORY.send(@method).should == 2

    Readline::HISTORY.pop
    Readline::HISTORY.pop
    Readline::HISTORY.send(@method).should == 0
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rubysl-readline-1.0.1 spec/history/shared/size.rb
rubysl-readline-2.0.2 spec/history/shared/size.rb
rubysl-readline-1.0.0 spec/history/shared/size.rb
readline-ffi-0.0.2 spec/library/readline/history/shared/size.rb