diff options
| author | 2017-06-12 03:37:11 -0400 | |
|---|---|---|
| committer | 2017-06-12 03:37:11 -0400 | |
| commit | 8280a21a23d44aa90177e2bc041d0b8dc8556f4b (patch) | |
| tree | dadef7ee085c0e990a5070bd41b6a5b98c97f4fd /test/excelx/cell/test_string.rb | |
Import Upstream version 2.7.1upstream/2.7.1
Diffstat (limited to 'test/excelx/cell/test_string.rb')
| -rw-r--r-- | test/excelx/cell/test_string.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/excelx/cell/test_string.rb b/test/excelx/cell/test_string.rb new file mode 100644 index 0000000..f1c848f --- /dev/null +++ b/test/excelx/cell/test_string.rb @@ -0,0 +1,28 @@ +require 'test_helper' + +class TestRooExcelxCellString < Minitest::Test + def string + Roo::Excelx::Cell::String + end + + + def test_formatted_value + cell = string.new '1', nil, nil, nil, nil + assert_equal '1', cell.formatted_value + end + + def test_to_s + cell = string.new '0', nil, nil, nil, nil + assert_equal '0', cell.to_s + end + + def test_cell_value + cell = string.new '1', nil, nil, nil, nil + assert_equal '1', cell.cell_value + end + + def test_value + cell = string.new '0', nil, nil, nil, nil + assert_equal '0', cell.value + end +end |
