Exemplo n.º 1
0
def test_convert_from_c_boiling():
    assert hwk2.convert(100, 'c') == approx(212)
Exemplo n.º 2
0
def test_convert_from_kelvin():
    assert hwk2.convert(0, 'k') == None
Exemplo n.º 3
0
def test_convert_from_f_boiling():
    assert hwk2.convert(212, 'f') == approx(100)
Exemplo n.º 4
0
def test_convert_from_c_freezing():
    assert hwk2.convert(0, 'c') == approx(32)
Exemplo n.º 5
0
def test_convert_from_f_freezing():
    assert hwk2.convert(32, 'f') == approx(0)
Exemplo n.º 6
0
def test_convert_from_kilos_one():
    assert hwk2.convert(1, 'kg') == approx(2.20462)
Exemplo n.º 7
0
def test_convert_from_kilos_zero():
    assert hwk2.convert(0, 'kg') == approx(0)
Exemplo n.º 8
0
def test_convert_from_pounds_one():
    assert hwk2.convert(1, 'lb') == approx(1 / 2.20462)
Exemplo n.º 9
0
def test_convert_from_pounds_zero():
    assert hwk2.convert(0, 'lb') == approx(0)