Sha256: 4435c3eef1a8269f1a19bb2a411402491013d24fa87788b01f4f8f263f2e13b6
Contents?: true
Size: 900 Bytes
Versions: 2
Compression:
Stored size: 900 Bytes
Contents
require 'roo/excelx/cell/base' require 'roo/excelx/cell/boolean' require 'roo/link' class TestRooExcelxCellNumber < Minitest::Test def boolean Roo::Excelx::Cell::Boolean end def test_formatted_value cell = boolean.new '1', nil, nil, nil, nil assert_equal 'TRUE', cell.formatted_value cell = boolean.new '0', nil, nil, nil, nil assert_equal 'FALSE', cell.formatted_value end def test_to_s cell = boolean.new '1', nil, nil, nil, nil assert_equal 'TRUE', cell.to_s cell = boolean.new '0', nil, nil, nil, nil assert_equal 'FALSE', cell.to_s end def test_cell_value cell = boolean.new '1', nil, nil, nil, nil assert_equal '1', cell.cell_value end def test_value cell = boolean.new '1', nil, nil, nil, nil assert_equal true, cell.value cell = boolean.new '0', nil, nil, nil, nil assert_equal false, cell.value end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roo-2.3.0 | test/excelx/cell/test_boolean.rb |
roo-2.2.0 | test/excelx/cell/test_boolean.rb |