Sha256: 26c05dd1608f498c53c8d30df024ad3ea51e2ac1a0018ae24aa8cbb2dc48e148
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'test_helper' class Flucti::Utilities::TableTest < Test::Unit::TestCase C = Flucti::Utilities::Table def test_to_s table = C.new("Foo", "Bar") table << [1, "A"] table << [2, "B"] # (show invisibles) assert_table_equal <<-EOS.chomp, table.to_s Foo | Bar -----+----- 1 | A 2 | B EOS end private def assert_table_equal(a, b) assert_equal a, b rescue Test::Unit::AssertionFailedError $stderr.puts "Expected:\n#{a}\n(#{a.inspect})\n\nActual:\n#{b}\n(#{b.inspect})" raise end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Flucti-flucti-cli-0.1.16 | test/flucti/utilities/table_test.rb |