import pyclesperanto_prototype as cle
import numpy as np

def test_binary_xor():
    test = cle.push(np.asarray([
        [1, 0],
        [1, 0]
    ]))

    test1 = cle.push(np.asarray([
        [1, 1],
        [0, 0]
    ]))

    test2 = cle.create(test)
    cle.binary_xor(test, test1, test2)

    print(test2)

    a = cle.pull(test2)
    assert (np.min(a) == 0)
    assert (np.max(a) == 1)
    assert (np.mean(a) == 0.5)
