# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/package/shared_strings' class TestSharedStrings02 < Test::Unit::TestCase def test_shared_strings02 @obj = Writexlsx::Package::SharedStrings.new @obj.string_count = 3 @obj.unique_count = 3 @obj.add_strings(['abcdefg', ' abcdefg', 'abcdefg ']) @obj.assemble_xml_file result = got_to_array(@obj.xml_str) expected = expected_to_array(< abcdefg abcdefg abcdefg EOS ) assert_equal(expected, result) end end