aboutsummaryrefslogtreecommitdiffstats
path: root/test/excelx/cell
diff options
context:
space:
mode:
Diffstat (limited to 'test/excelx/cell')
-rw-r--r--test/excelx/cell/test_number.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/excelx/cell/test_number.rb b/test/excelx/cell/test_number.rb
index ddcffeb..58c9ff7 100644
--- a/test/excelx/cell/test_number.rb
+++ b/test/excelx/cell/test_number.rb
@@ -35,6 +35,11 @@ class TestRooExcelxCellNumber < Minitest::Test
assert_kind_of(Float, cell.value)
end
+ def test_rounded_percent_formatted_value
+ cell = Roo::Excelx::Cell::Number.new '0.569999999995', nil, ['0%'], nil, nil, nil
+ assert_equal('57%', cell.formatted_value)
+ end
+
def test_formats_with_negative_numbers
[
['#,##0 ;(#,##0)', '(1,042)'],