Sha256: 8c17155c8f620480f86f1b5817c0041d0ff173b0664e7449eb8cb31e090a95c1

Contents?: true

Size: 615 Bytes

Versions: 7

Compression:

Stored size: 615 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_rich_string04
    @xlsx = 'rich_string04.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    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', bold, 'abc', italic, 'defg')

    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_string04.rb
write_xlsx-0.85.11 test/regression/test_rich_string04.rb
write_xlsx-0.85.10 test/regression/test_rich_string04.rb
write_xlsx-0.85.9 test/regression/test_rich_string04.rb
write_xlsx-0.85.8 test/regression/test_rich_string04.rb
write_xlsx-0.85.7 test/regression/test_rich_string04.rb
write_xlsx-0.85.6 test/regression/test_rich_string04.rb