Sha256: d1138faa1896b5d3f76c5742007c01003692a8e1a0a9c6389d0d713feee410b1

Contents?: true

Size: 862 Bytes

Versions: 19

Compression:

Stored size: 862 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'

class TestRegressionTable15 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_table15
    @xlsx = 'table15.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    data = [
            [ 'Foo', 1234, 2000, 4321 ],
            [ 'Bar', 1256,    0, 4320 ],
            [ 'Baz', 2234, 3000, 4332 ],
            [ 'Bop', 1324, 1000, 4333 ]
           ]

    # Set the column width to match the taget worksheet.
    worksheet.set_column('C:F', 10.288)

    # Add the table.
    worksheet.add_table('C2:F6', { :data    => data })

    workbook.close
    compare_for_regression(
                                nil,
                                {  'xl/workbook.xml' => ['<workbookView'] }
                                )
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_table15.rb
write_xlsx-1.09.3 test/regression/test_table15.rb
write_xlsx-1.09.2 test/regression/test_table15.rb
write_xlsx-1.09.1 test/regression/test_table15.rb
write_xlsx-1.09.0 test/regression/test_table15.rb
write_xlsx-1.08.2 test/regression/test_table15.rb
write_xlsx-1.08.1 test/regression/test_table15.rb
write_xlsx-1.08.0 test/regression/test_table15.rb
write_xlsx-1.07.0 test/regression/test_table15.rb
write_xlsx-1.04.0 test/regression/test_table15.rb
write_xlsx-1.02.0 test/regression/test_table15.rb
write_xlsx-1.01.0 test/regression/test_table15.rb
write_xlsx-1.00.0 test/regression/test_table15.rb
write_xlsx-0.99.0 test/regression/test_table15.rb
write_xlsx-0.97.0 test/regression/test_table15.rb
write_xlsx-0.90.0 test/regression/test_table15.rb
write_xlsx-0.89.0 test/regression/test_table15.rb
write_xlsx-0.88.0 test/regression/test_table15.rb
write_xlsx-0.87.0 test/regression/test_table15.rb