aboutsummaryrefslogtreecommitdiffstats
path: root/test/excelx/cell
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-11-26 19:02:28 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2025-11-26 19:02:28 -0500
commitc62f8376a13e7a4f493167aba1c66a9201fc59c6 (patch)
treed58492f972be02c406d26620004e1ffe2086fbc7 /test/excelx/cell
parentae103e148eb3c15606b816505492d870ef062ad3 (diff)
New upstream version 3.0.0.upstream/3.0.0upstream
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)'],