# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/package/shared_strings' class TestSharedStrings02 < Minitest::Test def test_shared_strings02 @obj = Writexlsx::Package::SharedStrings.new @obj.index('abcdefg') @obj.index(' abcdefg') @obj.index('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