Sha256: fc9ef30cd3c0e4ec39ff53b12b4157104fd8ba9a4c6831966e7f04ea078a225c
Contents?: true
Size: 542 Bytes
Versions: 9
Compression:
Stored size: 542 Bytes
Contents
require_relative '../../helper' describe Tk::Listbox do it 'initializes' do instance = Tk::Listbox.new instance.class.should == Tk::Listbox instance.tk_parent.should == Tk.root end it 'Make sure we get contents of the list' do list = Tk::Listbox.new list.insert 0, "first line" list.get(0).should == "first line" list.insert 1, "second line" list.get(1).should == "second line" list.get(0, 1).should == ['first line', 'second line'] list.value.should == ['first line', 'second line'] end end
Version data entries
9 entries across 9 versions & 1 rubygems