示例#1
0
def test_invert_twice(symops, symops_sec):
    """Confirms that double inversion does not change symbolic operation"""
    for nr, symop in enumerate(symops):
        double_inverted = symmath.invert_symop(
                                symmath.invert_symop(symop))
        assert any([double_inverted == symop,
                    double_inverted == symops_sec[nr]])
示例#2
0
def test_invert(symops, symops_inv, symops_inv_sec):
    """Tests symmath.invert_symop that iverts symbolic operation"""
    for nr, symop in enumerate(symops):
        inverted = symmath.invert_symop(symop)
        assert any([inverted == symops_inv[nr], 
                    inverted == symops_inv_sec[nr]])