Sha256: 914f9a0f8cdc229dec6f983de95b9645d0b298c67f47354f988740cf3a0e47ed

Contents?: true

Size: 1.82 KB

Versions: 19

Compression:

Stored size: 1.82 KB

Contents

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

class TestRegressionSetColumn01 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_set_column01
    @xlsx = 'set_column01.xlsx'
    workbook    = WriteXLSX.new(@io)
    worksheet   = workbook.add_worksheet

    worksheet.set_column( "A:A",   0.08 )
    worksheet.set_column( "B:B",   0.17 )
    worksheet.set_column( "C:C",   0.25 )
    worksheet.set_column( "D:D",   0.33 )
    worksheet.set_column( "E:E",   0.42 )
    worksheet.set_column( "F:F",   0.5 )
    worksheet.set_column( "G:G",   0.58 )
    worksheet.set_column( "H:H",   0.67 )
    worksheet.set_column( "I:I",   0.75 )
    worksheet.set_column( "J:J",   0.83 )
    worksheet.set_column( "K:K",   0.92 )
    worksheet.set_column( "L:L",   1 )
    worksheet.set_column( "M:M",   1.14 )
    worksheet.set_column( "N:N",   1.29 )
    worksheet.set_column( "O:O",   1.43 )
    worksheet.set_column( "P:P",   1.57 )
    worksheet.set_column( "Q:Q",   1.71 )
    worksheet.set_column( "R:R",   1.86 )
    worksheet.set_column( "S:S",   2 )
    worksheet.set_column( "T:T",   2.14 )
    worksheet.set_column( "U:U",   2.29 )
    worksheet.set_column( "V:V",   2.43 )
    worksheet.set_column( "W:W",   2.57 )
    worksheet.set_column( "X:X",   2.71 )
    worksheet.set_column( "Y:Y",   2.86 )
    worksheet.set_column( "Z:Z",   3 )
    worksheet.set_column( "AB:AB", 8.57 )
    worksheet.set_column( "AC:AC", 8.71 )
    worksheet.set_column( "AD:AD", 8.86 )
    worksheet.set_column( "AE:AE", 9 )
    worksheet.set_column( "AF:AF", 9.14 )
    worksheet.set_column( "AG:AG", 9.29 )

    workbook.close

    compare_for_regression
    # @xlsx,
    # nil,
    # {
    #   'xl/charts/chart1.xml' => ['<c:pageMargins'],
    #   'xl/workbook.xml'      => [ '<fileVersion', '<calcPr' ]
    # }
    # )

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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