コード例 #1
0
ファイル: test_basics.py プロジェクト: AlexandreCampo/xdress
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)
コード例 #2
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)
コード例 #3
0
ファイル: test_basics.py プロジェクト: AlexandreCampo/xdress
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)
コード例 #4
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)