# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/chart' class TestWritePt < Minitest::Test def setup @chart = Writexlsx::Chart.new('Bar') end def test_write_pt expected = '1' @chart.__send__('write_pt', 0, 1) result = @chart.instance_variable_get(:@writer).string assert_equal(expected, result) end end