コード例 #1
0
def test_tuple_size():
    test_tuple = Functions.find_min_max([-3, 0.3, 8, 29])
    assert len(test_tuple) == 2
コード例 #2
0
def test_max():
    test_max = Functions.find_min_max([0, 2, 345, 890])
    assert test_max[1] == 890
コード例 #3
0
def test_precision():
    test_min_max = Functions.find_min_max([-3903, 0.389, 9870])
    assert test_min_max == (-3903, 9870)
コード例 #4
0
def test_min():
    test_min = Functions.find_min_max([4, 2, 0])
    assert test_min[0] == 0