diff options
| author | 2019-01-14 01:40:56 -0500 | |
|---|---|---|
| committer | 2019-01-14 01:40:56 -0500 | |
| commit | dddfa903d2b856146f05ffb4415c31d6127bb5bf (patch) | |
| tree | e38c2aca92b54f06ccd0185f48dc47e3e1b3d77e /test/excelx/cell/test_string.rb | |
| parent | 8280a21a23d44aa90177e2bc041d0b8dc8556f4b (diff) | |
New upstream version 2.8.0upstream/2.8.0
Diffstat (limited to 'test/excelx/cell/test_string.rb')
| -rw-r--r-- | test/excelx/cell/test_string.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/excelx/cell/test_string.rb b/test/excelx/cell/test_string.rb index f1c848f..b7ecaa7 100644 --- a/test/excelx/cell/test_string.rb +++ b/test/excelx/cell/test_string.rb @@ -25,4 +25,24 @@ class TestRooExcelxCellString < Minitest::Test cell = string.new '0', nil, nil, nil, nil assert_equal '0', cell.value end + + def test_not_empty? + cell = string.new '1', nil, nil, nil, nil + assert_equal false, cell.empty? + end + + def test_empty? + cell = string.new '', nil, nil, nil, nil + assert_equal true, cell.empty? + end + + def test_presence + cell = string.new '1', nil, nil, nil, nil + assert_equal cell, cell.presence + end + + def test_nil_presence + cell = string.new '', nil, nil, nil, nil + assert_nil cell.presence + end end |
