示例#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")
示例#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")
示例#3
0
文件: flarry_test.py 项目: alpmdog/la
 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.")
示例#4
0
文件: flarry_test.py 项目: alpmdog/la
 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.")
示例#5
0
文件: flarry_test.py 项目: alpmdog/la
 def test_ones_1(self):
     a = ones(5)
     d = larry([1., 1., 1., 1., 1.])
     ale(a, d, "ones failed.")
示例#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.")
示例#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.")
示例#8
0
 def test_ones_1(self):
     a = ones(5)
     d = larry([1., 1., 1., 1., 1.])
     ale(a, d, "ones failed.")