Exemplo n.º 1
0
def test_apply2_wrong_ind(operator_with_arrays):
    op, mu, U, V = operator_with_arrays
    for ind in invalid_inds(U):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
Exemplo n.º 2
0
def test_apply2_wrong_ind(operator_with_arrays):
    op, mu, U, V = operator_with_arrays
    for ind in invalid_inds(U):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply2(U, V, mu=mu, ind=ind)
Exemplo n.º 3
0
def test_apply_inverse_wrong_ind(operator_with_arrays):
    op, mu, _, V = operator_with_arrays
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply_inverse(V, mu=mu, ind=ind)
Exemplo n.º 4
0
def test_apply_inverse_wrong_ind(operator_with_arrays):
    op, mu, _, V = operator_with_arrays
    for ind in invalid_inds(V):
        with pytest.raises(Exception):
            op.apply_inverse(V, mu=mu, ind=ind)