Sha256: 7af879a951725ea103736ff3a9ea4ffd63a8132b57b9cff79c286c21e6add9d8
Contents?: true
Size: 756 Bytes
Versions: 13
Compression:
Stored size: 756 Bytes
Contents
require 'epitools/term' describe Term do it "sizes" do width, height = Term.size width.class.should == Fixnum height.class.should == Fixnum end it "tables" do table = Term::Table[ (1..1000).to_a ] #p [:cols, table.num_columns] #p [:rows, table.num_rows] #puts "columns" #puts table.by_columns :border=>true #puts "rows" #puts table.by_rows table.by_columns.should_not be_nil table.by_rows.should_not be_nil table.border = true table.by_columns.should_not be_nil table.by_rows.should_not be_nil end it "tables nothing" do table = Term::Table.new [] lambda { table.by_rows }.should_not raise_error lambda { table.by_columns }.should_not raise_error end end
Version data entries
13 entries across 13 versions & 1 rubygems