示例#1
0
def test_scale_vel_500():
    res = scale_velocity(500, 0.2)
    assert res == 0.1
示例#2
0
def test_scale_vel_list():
    res = scale_velocity([1, 2, 3, 4])
    np.testing.assert_array_almost_equal(res,
                                         np.array([0.005, 0.01, 0.015, 0.02]))
示例#3
0
def test_scale_vel_1000():
    res = scale_velocity(1000, 0.2)
    assert res == 0.2
示例#4
0
def test_scale_vel_2_len3():
    res = scale_velocity(2, 3)
    assert res == 0.006
示例#5
0
def test_scale_vel_1_len3():
    res = scale_velocity(1, 3)
    assert res == 0.003
示例#6
0
def test_scale_vel_1():
    res = scale_velocity(1, 0.2)
    assert res == 0.0002