Sha256: 39e768e8880509b9969bb0f6f2e8c1d2d8f0ce7db8aeaeee123dbf62ecc34153
Contents?: true
Size: 997 Bytes
Versions: 6
Compression:
Stored size: 997 Bytes
Contents
require_relative './xlsx-func-testcase' class TestOptimize < XlsxWriterTestCase test('optimize01', constant_memory: true) do |wb| wb.add_worksheet .write_string(0, 0, 'Hello', nil) .write_string(0, 0, 'Hello', nil) .write_number(1, 0, 123, nil) end test('optimize02', constant_memory: true) do |wb| wb.add_worksheet .write_string(0, 0, 'Hello', nil) .write_number(1, 0, 123, nil) .write_string(0, 'G', 'World', nil) # G1 should be ignored since a later row has already been written. end test('optimize06', constant_memory: true) do |wb| ws = wb.add_worksheet ws.write_string(0, 0, '_x0000_', nil) (1..127).each { |i| ws.write_string(i, 0, i.chr, nil) unless i == 34 } end test('optimize21', constant_memory: true) do |wb| wb.add_worksheet .write_string(0, 'A', 'Foo', nil) .write_string(2, 'C', ' Foo', nil) .write_string(4, 'E', 'Foo ', nil) .write_string(6, 'A', "\tFoo\t", nil) end end
Version data entries
6 entries across 6 versions & 1 rubygems