18 lines
310 B
Python
18 lines
310 B
Python
from solution import f_to_c
|
|
|
|
|
|
def test_freezing():
|
|
assert f_to_c(32) == "32.0°F = 0.0°C"
|
|
|
|
|
|
def test_boiling():
|
|
assert f_to_c(212) == "212.0°F = 100.0°C"
|
|
|
|
|
|
def test_body_temp():
|
|
assert f_to_c(98.6) == "98.6°F = 37.0°C"
|
|
|
|
|
|
def test_zero_fahrenheit():
|
|
assert f_to_c(0) == "0.0°F = -17.8°C"
|