Update the tests.

This commit is contained in:
Dorian 2019-11-06 20:16:25 -05:00
parent 4d8777a9af
commit 85bd911959
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ def test_using_unit_converter():
assert python_unit_converter(25.0) == 77.0 assert python_unit_converter(25.0) == 77.0
def test_windchill():
temperature = unit_converter.Temperature(-20.0)
assert round(temperature.windchill(32.0), 1) == -32.9
def test_using_python_constant(benchmark): def test_using_python_constant(benchmark):
result = benchmark(python_unit_converter, 25.0) result = benchmark(python_unit_converter, 25.0)
assert round(result, 3) == round(77.0, 3) assert round(result, 3) == round(77.0, 3)