

def test_canonicalize():
    X = MatrixSymbol('X', 2, 2)
    expr = HadamardProduct(X, check=False)
    assert isinstance(expr, HadamardProduct)
    expr2 = expr.doit()
    assert isinstance(expr2, MatrixSymbol)

dataset/ETHPy150Open sympy/sympy/sympy/matrices/expressions/tests/test_hadamard.py test_canonicalize/original