Skip to content

Commit a309354

Browse files
Ken KundertKen Kundert
authored andcommitted
improve the unit-conversion tests
1 parent 267f4b6 commit a309354

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_unit_conversion2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ def test_cc(initialize_unit_conversions):
165165
('10e3 buzz','fuzz','10,000 fuzz'), # known units that start with a sf
166166
('10e3 fuzz','g', 'ERR g✗fuzz'), # incompatible units, one starts with sf
167167
('10e3 g', 'fuzz','ERR fuzz✗g'), # incompatible units, other starts with sf
168+
('10e6', '', '10,000,000'), # no units no scale factor
169+
('10e6', 'k', '10,000 k'), # no units with to scale factor
170+
('10e3k', '', '10,000,000'), # no units with from scale factor
171+
('10e3k', 'M', '10 M'), # no units with to and from scale factor
168172
]
169173
)
170174
def test_scaling(initialize_unit_conversions, value, to_units, expected):

0 commit comments

Comments
 (0)