Imperfect tests run frequently are better than perfect tests which are never written
def kelvin_to_celsius(temp_k):
"""
Converts temperature in Kelvin
to Celsius.
"""
assert temp_k >= 0.0, "ERROR: negative T_K"
temp_c = temp_k + 273.15
return temp_c
make test
)Image by @thepracticaldev, CC-BY-NC.
Automatize testing.