Skip to content

Commit

Permalink
creating a failing testcase for float reading
Browse files Browse the repository at this point in the history
  • Loading branch information
SKoschnicke committed Sep 11, 2012
1 parent 878103e commit f309aeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added test/data/test_float_precision.xls
Binary file not shown.
6 changes: 6 additions & 0 deletions test/integration.rb
Expand Up @@ -1264,6 +1264,12 @@ def test_write_borders
assert_equal :hair, format.left
assert_equal :brown, format.top_color
end
def test_float_precision
path = File.join(@data, 'test_float_precision.xls')
book = Spreadsheet.open(path)
sheet = book.worksheet 0
assert_equal "-1912.167", sheet[0,0].to_s
end

private

Expand Down

0 comments on commit f309aeb

Please sign in to comment.