Sha256: 2fc5c5fa85ab819708db67ee17b036790f9a5d7821135adbf0913b8f410215cd

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

require_relative './xlsx-func-testcase'

class TestDefaultRow < XlsxWriterTestCase
  test 'default_row01' do |wb|
    ws = wb.add_worksheet

    ws.set_default_row(24, false)

    ws.write_string(0, 'A', 'Foo', nil)
    ws.write_string(9, 'A', 'Bar', nil)
  end

  test 'default_row05' do |wb|
    ws = wb.add_worksheet

    ws.set_default_row(24, true)

    ws.write_string(0,  'A', 'Foo', nil)
    ws.write_string(9,  'A', 'Bar', nil)
    ws.write_string(19, 'A', 'Baz', nil)

    (1..8).each { |i| ws.set_row(i, height: 24) }
    (10..19).each { |i| ws.set_row(i, height: 24) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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