def test_65(): "Regression #65" actual = la.ones((0,1)).any(axis=1).dtype desired = np.ones((0,1)).any(axis=1).dtype assert_equal(actual, desired, "lar.any() returned wrong dtype") actual = la.ones((0,1)).all(axis=1).dtype desired = np.ones((0,1)).all(axis=1).dtype assert_equal(actual, desired, "lar.all() returned wrong dtype")
def test_65(): "Regression #65" actual = la.ones((0, 1)).any(axis=1).dtype desired = np.ones((0, 1)).any(axis=1).dtype assert_equal(actual, desired, "lar.any() returned wrong dtype") actual = la.ones((0, 1)).all(axis=1).dtype desired = np.ones((0, 1)).all(axis=1).dtype assert_equal(actual, desired, "lar.all() returned wrong dtype")
def test_ones_4(self): a = ones(label=[['a', 'b'], ['c', 'd']]) d = larry([[1., 1.], [1., 1.]], [['a', 'b'], ['c', 'd']]) ale(a, d, "ones failed.")
def test_ones_3(self): a = ones((2, 2), dtype='i8') d = larry(np.array([1., 1., 1., 1.], dtype='i8').reshape(2,2)) ale(a, d, "ones failed.")
def test_ones_1(self): a = ones(5) d = larry([1., 1., 1., 1., 1.]) ale(a, d, "ones failed.")
def test_ones_3(self): a = ones((2, 2), dtype='i8') d = larry(np.array([1., 1., 1., 1.], dtype='i8').reshape(2, 2)) ale(a, d, "ones failed.")