Sha256: f720e0e442205f181f32d60489d3ffc1a06398109aee1813ebed1893e9b88af0

Contents?: true

Size: 775 Bytes

Versions: 7

Compression:

Stored size: 775 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_format12
    @xlsx = 'format12.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    top_left_bottom = workbook.add_format(
      :left   => 1,
      :top    => 1,
      :bottom => 1
    )

    top_bottom = workbook.add_format(
      :top    => 1,
      :bottom => 1
    )

    top_left = workbook.add_format(
      :left   => 1,
      :top    => 1
    )

    worksheet.write('B2', 'test', top_left_bottom)
    worksheet.write('D2', 'test', top_left)
    worksheet.write('F2', 'test', top_bottom)

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