Sha256: af450d21bad94e3aad6b63020c57641ea3e7d05ffe0139a8f36242ef5d1ff8d0
Contents?: true
Size: 518 Bytes
Versions: 21
Compression:
Stored size: 518 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/package/shared_strings' class TestWriteSst < Test::Unit::TestCase def test_write_sst @obj = Writexlsx::Package::SharedStrings.new @obj.index('1') @obj.index('2') 5.times { @obj.index('3') } @obj.__send__('write_sst') result = @obj.instance_variable_get(:@writer).string expected = '<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="7" uniqueCount="3">' assert_equal(expected, result) end end
Version data entries
21 entries across 21 versions & 1 rubygems