Sha256: e64e2a6fa35ebcacab09e7d3ff36340a9f150dc30c2da89033e9ef9117f7826e
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
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_row02' do |wb| ws = wb.add_worksheet ws.set_default_row(15, true) ws.write_string('A1', 'Foo', nil) ws.write_string('A10', 'Bar', nil) (1..8).each { |i| ws.set_row i, height: 15 } end test 'default_row03' do |wb| ws = wb.add_worksheet ws.set_default_row(24, true) ws.write_string('A1', 'Foo', nil) ws.write_string('A10', 'Bar', nil) (1..8).each { |i| ws.set_row i, height: 24 } 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
5 entries across 5 versions & 1 rubygems