Example #1
0
def test29():
    u = Vector([5, 0, 0])
    v = u.copy()

    u *= v

    assert_equal(u, 25)
Example #2
0
def test29():
    u = Vector([5, 0, 0])
    v = u.copy()

    u *= v

    assert_equal(u, 25)
Example #3
0
def test32():
    u = Vector([5, 0, 0])
    v = u.copy()

    with assert_raises(TypeError):
        v **= v

    assert_equal(u, v)
Example #4
0
def test32():
    u = Vector([5, 0, 0])
    v = u.copy()

    with assert_raises(TypeError):
        v **= v

    assert_equal(u, v)