Sha256: 6ad36ba1633883ac03c66e9b0000f4f64bd4bb355009064163ca83d402b5cbc4

Contents?: true

Size: 894 Bytes

Versions: 6

Compression:

Stored size: 894 Bytes

Contents

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

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

  def teardown
    File.delete(@xlsx) if File.exist?(@xlsx)
  end

  def test_quote_name04
    @xlsx = 'quote_name04.xlsx'
    workbook  = WriteXLSX.new(@xlsx)

    data = [
            [1, 2, 3,  4,  5],
            [2, 4, 6,  8, 10],
            [3, 6, 9, 12, 15]
           ]

    # Test quoted/non-quoted sheet names.
    worksheet = workbook.add_worksheet('Sheet 1')
    chart = workbook.add_chart(:type => 'pie', :embedded => 1)

    worksheet.write( 'A1', data )
    chart.add_series(
      :values => ['Sheet 1', 0, 4, 0, 0],
      :name   => ['Sheet 1', 0, 0]
    )

    chart.set_title(:name => 'Foo')

    worksheet.insert_chart('E9', chart)

    workbook.close
    compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
write_xlsx-0.85.5 test/regression/test_quote_name04.rb
write_xlsx-0.85.4 test/regression/test_quote_name04.rb
write_xlsx-0.85.3 test/regression/test_quote_name04.rb
write_xlsx-0.85.2 test/regression/test_quote_name04.rb
write_xlsx-0.85.1 test/regression/test_quote_name04.rb
write_xlsx-0.83.0 test/regression/test_quote_name04.rb