Sha256: bb4eeff55a5aed381ca51fe9d9bfb48420add4e492b2a9fa37f11cc2a14ae318

Contents?: true

Size: 992 Bytes

Versions: 21

Compression:

Stored size: 992 Bytes

Contents

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

class TestRegressionTable16 < Test::Unit::TestCase
  def setup
    setup_dir_var
  end

  def teardown
    File.delete(@xlsx) if File.exist?(@xlsx)
  end

  def test_table16
    @xlsx = 'table02.xlsx'
    workbook   = WriteXLSX.new(@xlsx)
    worksheet1 = workbook.add_worksheet
    worksheet2 = workbook.add_worksheet

    # Set the column width to match the taget worksheet.
    worksheet1.set_column('B:J', 10.288)
    worksheet2.set_column('C:L', 10.288)

    # Add the tables in reverse order to test_table02.rb
    worksheet2.add_table('I4:L11')
    worksheet2.add_table('C16:H23')

    worksheet1.add_table('B3:E11')
    worksheet1.add_table('G10:J16')
    worksheet1.add_table('C18:F25')

    workbook.close
    compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx,
                                nil,
                                {  'xl/workbook.xml' => ['<workbookView'] }
                                )
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
write_xlsx-0.85.5 test/regression/test_table16.rb
write_xlsx-0.85.4 test/regression/test_table16.rb
write_xlsx-0.85.3 test/regression/test_table16.rb
write_xlsx-0.85.2 test/regression/test_table16.rb
write_xlsx-0.85.1 test/regression/test_table16.rb
write_xlsx-0.83.0 test/regression/test_table16.rb
write_xlsx-0.81.1 test/regression/test_table16.rb
write_xlsx-0.81.0 test/regression/test_table16.rb
write_xlsx-0.80.0 test/regression/test_table16.rb
write_xlsx-0.79.0 test/regression/test_table16.rb
write_xlsx-0.78.0 test/regression/test_table16.rb
write_xlsx-0.77.2 test/regression/test_table16.rb
write_xlsx-0.77.1 test/regression/test_table16.rb
write_xlsx-0.77.0 test/regression/test_table16.rb
write_xlsx-0.76.3 test/regression/test_table16.rb
write_xlsx-0.76.2 test/regression/test_table16.rb
write_xlsx-0.76.1 test/regression/test_table16.rb
write_xlsx-0.76.0 test/regression/test_table16.rb
write_xlsx-0.75.0 test/regression/test_table16.rb
write_xlsx-0.74.0 test/regression/test_table16.rb