示例#1
0
def test_temp2():
    """Tests temp2"""
    assert f2c(2967, 3) == "1630.556"
示例#2
0
def test_BodyTemp():
    """Tests Body Temperature"""
    assert f2c(98.6, 0) == "37"
示例#3
0
def test_Boiling():
    """Tests boiling point"""
    assert f2c(212, 0) == "100"
示例#4
0
def test_Freezing():
    """Tests Freezing point"""
    assert f2c(32, 0) == "0"
示例#5
0
def test_temp1():
    """Tests temp1"""
    assert f2c(387, 4) == "197.2222"
示例#6
0
def test_Zero():
    """Tests Zero"""
    assert f2c(0, 2) == "-17.78"
示例#7
0
def test_Parity():
    """Tests Parity"""
    assert f2c(-40, 1) == "-40.0"
示例#8
0
def test_absZero():
    """Tests absolute zero"""
    assert f2c(-459.67, 2) == "-273.15"
示例#9
0
def test_temp4():
    """Tests temp4"""
    assert f2c(-987, 2) == "-566.11"
示例#10
0
def test_temp3():
    """Tests temp3"""
    assert f2c(-77, 1) == "-60.6"