Exemplo n.º 1
0
def test_findmin_int_float():
    exp = 42
    obs = basics.findmin_int_float(65, 42.0)
    assert_equal(exp, obs)

    exp = 42
    obs = basics.findmin[int, float](42, 65.0)
    assert_equal(exp, obs)
def test_findmin_int_float():
    exp = 42
    obs = basics.findmin_int_float(65, 42.0)
    assert_equal(exp, obs)

    exp = 42
    obs = basics.findmin[int, float](42, 65.0)
    assert_equal(exp, obs)
Exemplo n.º 3
0
def test_findmin_double_float():
    exp = 42.0
    obs = basics.findmin_int_float(65.0, 42.0)
    assert_equal(exp, obs)

    exp = 42.0
    obs = basics.findmin[float, float](42.0, 65.0)
    assert_equal(exp, obs)

    exp = 42.0
    obs = basics.findmin['float64', 'float32'](42.0, 65.0)
    assert_equal(exp, obs)
def test_findmin_double_float():
    exp = 42.0
    obs = basics.findmin_int_float(65.0, 42.0)
    assert_equal(exp, obs)

    exp = 42.0
    obs = basics.findmin[float, float](42.0, 65.0)
    assert_equal(exp, obs)

    exp = 42.0
    obs = basics.findmin['float64', 'float32'](42.0, 65.0)
    assert_equal(exp, obs)