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

Version Path
spreadsheet-0.6.5.3 test/excel/writer/worksheet.rb
spreadsheet-0.6.5.2 test/excel/writer/worksheet.rb
spreadsheet-0.6.5.1 test/excel/writer/worksheet.rb
ruby-spreadsheet-0.6.5 test/excel/writer/worksheet.rb
spreadsheet-0.6.5.0 test/excel/writer/worksheet.rb
spreadsheet-0.6.4.1 test/excel/writer/worksheet.rb
spreadsheet-0.6.4 test/excel/writer/worksheet.rb