# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/package/shared_strings' class TestSharedStrings01 < Minitest::Test def test_shared_strings01 @obj = Writexlsx::Package::SharedStrings.new @obj.index('neptune') @obj.index('mars') 5.times { @obj.index('venus') } @obj.assemble_xml_file result = got_to_array(@obj.xml_str) expected = expected_to_array(< neptune mars venus EOS ) assert_equal(expected, result) end end