From c62f8376a13e7a4f493167aba1c66a9201fc59c6 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Wed, 26 Nov 2025 19:02:28 -0500 Subject: New upstream version 3.0.0. --- test/excelx/cell/test_number.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/excelx') 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)'], -- cgit v1.2.3