Sha256: e07e591dd980e8546db2354f1875958ddd866fe050e044fb29d6078f50f52790

Contents?: true

Size: 1.18 KB

Versions: 29

Compression:

Stored size: 1.18 KB

Contents

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

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

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

  def test_simple05
    @xlsx = 'simple05.xlsx'
    workbook  = WriteXLSX.new(@xlsx)
    worksheet = workbook.add_worksheet

    worksheet.set_row(5, 18)
    worksheet.set_row(6, 18)

    format1 = workbook.add_format(:bold      => 1)
    format2 = workbook.add_format(:italic    => 1)
    format3 = workbook.add_format(:bold      => 1, :italic => 1)
    format4 = workbook.add_format(:underline => 1)
    format5 = workbook.add_format(:font_strikeout => 1)
    format6 = workbook.add_format(:font_script => 1)
    format7 = workbook.add_format(:font_script => 2)

    worksheet.write_string(0, 0, 'Foo', format1)
    worksheet.write_string(1, 0, 'Foo', format2)
    worksheet.write_string(2, 0, 'Foo', format3)
    worksheet.write_string(3, 0, 'Foo', format4)
    worksheet.write_string(4, 0, 'Foo', format5)
    worksheet.write_string(5, 0, 'Foo', format6)
    worksheet.write_string(6, 0, 'Foo', format7)

    workbook.close
    compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

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