Sha256: e5fb2be7f24e0769f9b3743d3b5e95865ce677549e96d5b3de0231245cc9e3db

Contents?: true

Size: 657 Bytes

Versions: 7

Compression:

Stored size: 657 Bytes

Contents

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

class TestRegressionIgnoreError06 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_ignore_error06
    @xlsx = 'ignore_error06.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.write_formula('A1', '=B1')
    worksheet.write_formula('A2', '=B1')
    worksheet.write_formula('A3', '=B3')

    worksheet.ignore_errors(
      :formula_differs => 'A2'
    )

    workbook.close
    compare_for_regression(
      ['xl/calcChain.xml', '[Content_Types].xml', 'xl/_rels/workbook.xml.rels'],
      {}
    )
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_ignore_error06.rb
write_xlsx-1.09.3 test/regression/test_ignore_error06.rb
write_xlsx-1.09.2 test/regression/test_ignore_error06.rb
write_xlsx-1.09.1 test/regression/test_ignore_error06.rb
write_xlsx-1.09.0 test/regression/test_ignore_error06.rb
write_xlsx-1.08.2 test/regression/test_ignore_error06.rb
write_xlsx-1.08.1 test/regression/test_ignore_error06.rb