# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/drawing' class DrawingChart011 < Minitest::Test def test_drawing_chart_01 @obj = Writexlsx::Drawings.new dimensions = [4, 8, 457200, 104775, 12, 22, 152400, 180975] drawing = Writexlsx::Drawing.new( 1, dimensions, nil, nil, nil, nil, 1, 1 ) @obj.add_drawing_object(drawing) @obj.embedded = true @obj.assemble_xml_file result = got_to_array(@obj.xml_str) expected = expected_to_array(< 4 457200 8 104775 12 152400 22 180975 EOS ) assert_equal(expected, result) end end