diff options
| author | 2019-01-14 01:40:56 -0500 | |
|---|---|---|
| committer | 2019-01-14 01:40:56 -0500 | |
| commit | dddfa903d2b856146f05ffb4415c31d6127bb5bf (patch) | |
| tree | e38c2aca92b54f06ccd0185f48dc47e3e1b3d77e /test/test_roo.rb | |
| parent | 8280a21a23d44aa90177e2bc041d0b8dc8556f4b (diff) | |
New upstream version 2.8.0upstream/2.8.0
Diffstat (limited to 'test/test_roo.rb')
| -rw-r--r-- | test/test_roo.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_roo.rb b/test/test_roo.rb index 9b732e9..dae4a41 100644 --- a/test/test_roo.rb +++ b/test/test_roo.rb @@ -339,21 +339,21 @@ class TestRoo < Minitest::Test # compare large spreadsheets def test_compare_large_spreadsheets - # problematisch, weil Formeln in Excel nicht unterstützt werden skip_long_test - qq = Roo::OpenOffice.new(File.join('test',"Bibelbund.ods")) - with_each_spreadsheet(:name=>'Bibelbund') do |oo| - # p "comparing Bibelbund.ods with #{oo.class}" + qq = Roo::OpenOffice.new(File.join('test', 'files', "Bibelbund.ods")) + with_each_spreadsheet(name: 'Bibelbund') do |oo| oo.sheets.each do |sh| oo.first_row.upto(oo.last_row) do |row| oo.first_column.upto(oo.last_column) do |col| - c1 = qq.cell(row,col,sh) + c1 = qq.cell(row, col, sh) c1.force_encoding("UTF-8") if c1.class == String c2 = oo.cell(row,col,sh) c2.force_encoding("UTF-8") if c2.class == String + next if c1.nil? && c2.nil? + assert_equal c1, c2, "diff in #{sh}/#{row}/#{col}}" - assert_equal qq.celltype(row,col,sh), oo.celltype(row,col,sh) - assert_equal qq.formula?(row,col,sh), oo.formula?(row,col,sh) if oo.class != Roo::Excel + assert_equal qq.celltype(row, col, sh), oo.celltype(row, col, sh) + assert_equal qq.formula?(row, col, sh), oo.formula?(row, col, sh) end end end |
