Sha256: ea22c1910d5b4a39711d06d65f9e27cbe7c7c3e62f8b7f20c4f6d3ce6db216b1

Contents?: true

Size: 700 Bytes

Versions: 14

Compression:

Stored size: 700 Bytes

Contents

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

class TestRegressionArrayFormula03 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_array_formula03
    @xlsx = 'array_formula03.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    data = [0, 0, 0]

    worksheet.write_col('B1', data)
    worksheet.write_col('C1', data)

    worksheet.write_formula(
      'A1',
      '{=SUM(B1:C1*B2:C2)}',
      nil,
      0
    )

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_array_formula03.rb
write_xlsx-1.09.3 test/regression/test_array_formula03.rb
write_xlsx-1.09.2 test/regression/test_array_formula03.rb
write_xlsx-1.09.1 test/regression/test_array_formula03.rb
write_xlsx-1.09.0 test/regression/test_array_formula03.rb
write_xlsx-1.08.2 test/regression/test_array_formula03.rb
write_xlsx-1.08.1 test/regression/test_array_formula03.rb
write_xlsx-1.08.0 test/regression/test_array_formula03.rb
write_xlsx-1.07.0 test/regression/test_array_formula03.rb
write_xlsx-1.04.0 test/regression/test_array_formula03.rb
write_xlsx-1.02.0 test/regression/test_array_formula03.rb
write_xlsx-1.01.0 test/regression/test_array_formula03.rb
write_xlsx-1.00.0 test/regression/test_array_formula03.rb
write_xlsx-0.99.0 test/regression/test_array_formula03.rb