diff options
| author | 2025-11-26 19:02:46 -0500 | |
|---|---|---|
| committer | 2025-11-26 19:02:46 -0500 | |
| commit | c77a15eed515fe6dc9b2e831670f4d484e23dace (patch) | |
| tree | 87c79155c0b52b0e59eaf971f2b5bf9d860c77e4 /test/excelx | |
| parent | 537c7673bedbb1a2f77a3a088710546cb46506d0 (diff) | |
| parent | c62f8376a13e7a4f493167aba1c66a9201fc59c6 (diff) | |
Update upstream source from tag 'upstream/3.0.0'
Update to upstream version '3.0.0'
with Debian dir ceed7b02bc1417ad11993c466d2350a6b62fbecf
Diffstat (limited to 'test/excelx')
| -rw-r--r-- | test/excelx/cell/test_number.rb | 5 |
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)'], |
