예제 #1
0
def test_weyl_ValueError_wrong_config_length():
    testarr = np.ones((4, 4, 4, 4), dtype=int).tolist()
    syms = sympy.symbols("x y z w")
    try:
        obj = WeylTensor(testarr, syms, config="uuu", parent_metric=None)
        assert False
    except ValueError:
        assert True
예제 #2
0
def test_weyl_TypeError():
    testarr = np.ones((4, 4, 4, 4), dtype=int).tolist()
    syms = 0
    try:
        obj = WeylTensor(testarr, syms)
        assert False
    except TypeError:
        assert True