8000 Add test for negative corner case · matplotlib/matplotlib@f6e242f · GitHub
[go: up one dir, main page]

Skip to content

Commit f6e242f

Browse files
authored
Add test for negative corner case
1 parent 8e17289 commit f6e242f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ class TestEngFormatter(object):
655655
(1.23456789, ('1.23457', '1', '1.23')),
656656
(999.9, ('999.9', '1 k', '999.90')), # places=0: corner-case rounding
657657
(999.9999, ('1 k', '1 k', '1.00 k')), # corner-case roudning for all
658+
(-999.9999, ('-1 k', '-1 k', '-1.00 k')), # negative corner-case
658659
(1000, ('1 k', '1 k', '1.00 k')),
659660
(1001, ('1.001 k', '1 k', '1.00 k')),
660661
(100001, ('100.001 k', '100 k', '100.00 k')),

0 commit comments

Comments
 (0)
0