1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|