Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 556ec20

Browse files
committed
Fix the related rounding discrepancies in test_ticker
1 parent 41a69da commit 556ec20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,11 @@ class TestEngFormatter(object):
564564
(0.1, ('100 m', '100 m', '100.00 m')),
565565
(1, ('1', '1', '1.00')),
566566
(1.23456789, ('1.23457', '1', '1.23')),
567-
(999.9, ('999.9', '999', '999.90')),
567+
(999.9, ('999.9', '1 k', '999.90')),
568568
(1000, ('1 k', '1 k', '1.00 k')),
569569
(1001, ('1.001 k', '1 k', '1.00 k')),
570570
(100001, ('100.001 k', '100 k', '100.00 k')),
571-
(987654.321, ('987.654 k', '987 k', '987.65 k'))
571+
(987654.321, ('987.654 k', '988 k', '987.65 k'))
572572
]
573573

574574
@pytest.mark.parametrize('input, expected', raw_format_data)

0 commit comments

Comments
 (0)