Sha256: a74ece989009b5bdb4ecb47591221253b31be353d6dcb757e0302e9a929cf0bc

Contents?: true

Size: 701 Bytes

Versions: 3

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

require_relative './xlsx-func-testcase'

class TestMisc < XlsxWriterTestCase
  test 'tab_color01' do |wb|
    wb.add_worksheet
      .write_string(0, 0, 'Foo', nil)
      .tab_color = XlsxWriter::Format::COLOR_RED
  end

  test 'firstsheet01' do |wb|
    wss = 20.times.map { wb.add_worksheet }
    wss[7].set_first_sheet
    wss[19].activate
  end

  test 'hide01' do |wb|
    wb.add_worksheet
    wb.add_worksheet.hide
    wb.add_worksheet
  end

  test 'gh42_01' do |wb|
    wb.add_worksheet.write_string(0, 0, "\xe5\x9b\xbe\x14\xe5\x9b\xbe", nil)
  end

  test 'gh42_02' do |wb|
    wb.add_worksheet.write_string(0, 0, "\xe5\x9b\xbe\x20\xe5\x9b\xbe", nil)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xlsxwriter-0.1.2.pre test/test-misc.rb
xlsxwriter-0.1.1 test/test-misc.rb
xlsxwriter-0.1.0 test/test-misc.rb