def test_not_dshape(sym): if sym in optionals: assert Not(sym).schema == dshape(Option('bool')) else: assert Not(sym).schema == dshape('bool')
def test_unary_ops_are_elemwise(): assert USub(x).shape == x.shape assert Not(b).shape == b.shape