Sha256: 62b64af2c93d476d2da7a7d4989311904cd22e21b92e823ad9d671128483043f

Contents?: true

Size: 684 Bytes

Versions: 7

Compression:

Stored size: 684 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_rich_string05
    @xlsx = 'rich_string05.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.set_column('A:A', 30)

    bold   = workbook.add_format(:bold   => 1)
    italic = workbook.add_format(:italic => 1)

    worksheet.write('A1', 'Foo', bold)
    worksheet.write('A2', 'Bar', italic)
    worksheet.write_rich_string('A3', 'This is ', bold, 'bold', ' and this is ', italic, 'italic')

    workbook.close
    compare_for_regression
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/regression/test_rich_string05.rb
write_xlsx-0.85.11 test/regression/test_rich_string05.rb
write_xlsx-0.85.10 test/regression/test_rich_string05.rb
write_xlsx-0.85.9 test/regression/test_rich_string05.rb
write_xlsx-0.85.8 test/regression/test_rich_string05.rb
write_xlsx-0.85.7 test/regression/test_rich_string05.rb
write_xlsx-0.85.6 test/regression/test_rich_string05.rb