From ec9d3b896a2b07cdcb8198c2227df8dac3b83cdb Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Wed, 28 Mar 2012 00:52:30 +0900 Subject: Still not fast enough? ``` user system total real axlsx_noautowidth 0.760000 0.020000 0.780000 ( 0.885482) axlsx 3.560000 0.130000 3.690000 ( 4.158594) axlsx_shared 11.610000 0.180000 11.790000 ( 13.208945) axlsx_stream 3.450000 0.120000 3.570000 ( 3.920745) csv 0.240000 0.010000 0.250000 ( 0.269822) --- test/workbook/worksheet/tc_cell.rb | 3 ++- test/workbook/worksheet/tc_row.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb index 991181e7..499f9209 100644 --- a/test/workbook/worksheet/tc_cell.rb +++ b/test/workbook/worksheet/tc_cell.rb @@ -69,7 +69,8 @@ class TestCell < Test::Unit::TestCase end def test_col_ref - assert_equal(@c.send(:col_ref), "A") + #TODO move to axlsx spec + assert_equal(Axlsx.col_ref(0), "A") end def test_cell_type_from_value diff --git a/test/workbook/worksheet/tc_row.rb b/test/workbook/worksheet/tc_row.rb index b77715c5..47b0f054 100644 --- a/test/workbook/worksheet/tc_row.rb +++ b/test/workbook/worksheet/tc_row.rb @@ -61,14 +61,14 @@ class TestRow < Test::Unit::TestCase end def test_to_xml_string - r_s_xml = Nokogiri::XML(@row.to_xml_string) + r_s_xml = Nokogiri::XML(@row.to_xml_string(0, '')) assert_equal(r_s_xml.xpath(".//row[@r=1]").size, 1) end def test_to_xml_string_with_custom_height @row.add_cell 1 @row.height = 20 - r_s_xml = Nokogiri::XML(@row.to_xml_string) + r_s_xml = Nokogiri::XML(@row.to_xml_string(0, '')) assert_equal(r_s_xml.xpath(".//row[@r=1][@ht=20][@customHeight=1]").size, 1) end -- cgit v1.2.3