diff options
| author | 2022-03-19 21:48:07 -0400 | |
|---|---|---|
| committer | 2022-03-19 21:48:07 -0400 | |
| commit | a6e765da9b4da8cf9ddedcbaeb29fe5dca5df263 (patch) | |
| tree | 39a2e5d06c16d048e9618e1170e3b6304fbade2e /test/excelx | |
| parent | e67f4551479264125a641b955523d95e192b6d44 (diff) | |
| parent | f5fb17e5a64b215644bc104f099dad8c2f10c37d (diff) | |
Update upstream source from tag 'upstream/2.9.0'
Update to upstream version '2.9.0'
with Debian dir 41b8f9c552bbf25b076de11901d6f615d684366f
Diffstat (limited to 'test/excelx')
| -rw-r--r-- | test/excelx/cell/test_attr_reader_default.rb | 2 | ||||
| -rw-r--r-- | test/excelx/cell/test_number.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/excelx/cell/test_attr_reader_default.rb b/test/excelx/cell/test_attr_reader_default.rb index c1ae277..be2e562 100644 --- a/test/excelx/cell/test_attr_reader_default.rb +++ b/test/excelx/cell/test_attr_reader_default.rb @@ -60,7 +60,7 @@ class TestAttrReaderDefault < Minitest::Test object.instance_variable_defined?(attr_name) ? object.instance_variable_get(attr_name) : nil else object.public_send(attr_name) - end + end if expected_value assert_equal expected_value, value diff --git a/test/excelx/cell/test_number.rb b/test/excelx/cell/test_number.rb index 5c8d726..ddcffeb 100644 --- a/test/excelx/cell/test_number.rb +++ b/test/excelx/cell/test_number.rb @@ -66,6 +66,7 @@ class TestRooExcelxCellNumber < Minitest::Test ['0.000000000', '1042.000000000'], ['#,##0', '1,042'], ['#,##0.00', '1,042.00'], + ['#,##0.000', '1,042.000'], ['0%', '104200%'], ['0.00%', '104200.00%'], ['0.00E+00', '1.04E+03'], @@ -74,6 +75,7 @@ class TestRooExcelxCellNumber < Minitest::Test ['#,##0.00;(#,##0.00)', '1,042.00'], ['#,##0.00;[Red](#,##0.00)', '1,042.00'], ['##0.0E+0', '1.0E+03'], + ["_-* #,##0.00\\ _€_-;\\-* #,##0.00\\ _€_-;_-* \"-\"??\\ _€_-;_-@_-", '1,042.00'], ['@', '1042'] ].each do |style_format, result| cell = Roo::Excelx::Cell::Number.new '1042', nil, [style_format], nil, nil, nil |
