Sha256: 87af94bd76b5dd657682b2faa10afff177a6b254fade4273ea9f86fdee391178
Contents?: true
Size: 870 Bytes
Versions: 42
Compression:
Stored size: 870 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' class TestRegressionRowColFormat08 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_row_col_format08 @xlsx = 'row_col_format08.xlsx' workbook = WriteXLSX.new(@xlsx) worksheet = workbook.add_worksheet bold = workbook.add_format(:bold => 1) mixed = workbook.add_format(:bold => 1, :italic => 1) italic = workbook.add_format(:italic => 1) workbook.set_default_xf_indices worksheet.set_row(0, nil, bold) worksheet.set_column('A:A', nil, italic) worksheet.write('A1', 'Foo', mixed) worksheet.write('B1', 'Foo') worksheet.write('A2', 'Foo') worksheet.write('B2', 'Foo') workbook.close compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx) end end
Version data entries
42 entries across 42 versions & 1 rubygems