Exemplo n.º 1
0
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")
Exemplo n.º 2
0
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")
Exemplo n.º 3
0
 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.")
Exemplo n.º 4
0
 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.")
Exemplo n.º 5
0
 def test_ones_1(self):
     a = ones(5)
     d = larry([1., 1., 1., 1., 1.])
     ale(a, d, "ones failed.")
Exemplo n.º 6
0
 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.")
Exemplo n.º 7
0
 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.")
Exemplo n.º 8
0
 def test_ones_1(self):
     a = ones(5)
     d = larry([1., 1., 1., 1., 1.])
     ale(a, d, "ones failed.")