Sha256: 62e2d02a63b8669ba7189aa94673675ce26d73493a51d42eb97dbc7a90101178
Contents?: true
Size: 645 Bytes
Versions: 7
Compression:
Stored size: 645 Bytes
Contents
#!/usr/bin/env ruby # Excel::Writer::TestWorksheet -- Spreadheet -- 21.11.2007 -- hwyss@ywesee.com require 'test/unit' require 'spreadsheet/excel/writer/worksheet' module Spreadsheet module Excel module Writer class TestWorksheet < Test::Unit::TestCase def test_need_number sheet = Worksheet.new nil, nil assert_equal false, sheet.need_number?(10) assert_equal false, sheet.need_number?(114.55) assert_equal false, sheet.need_number?(0.1) assert_equal false, sheet.need_number?(0.01) assert_equal true, sheet.need_number?(0.001) assert_equal true, sheet.need_number?(10000000.0) end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems