Update the tests.
This commit is contained in:
parent
4d8777a9af
commit
85bd911959
5
test.py
5
test.py
|
@ -12,6 +12,11 @@ def test_using_unit_converter():
|
|||
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):
|
||||
result = benchmark(python_unit_converter, 25.0)
|
||||
assert round(result, 3) == round(77.0, 3)
|
||||
|
|
Loading…
Reference in New Issue