Esempio n. 1
0
 def test_isaligned_4(self):
     "isaligned_4"
     lar1 = larry([[1, 2], [3, 4]], [['r1', 'r2'], ['c1', 'c2']])
     lar2 = larry([5, 6], [['r1', 'r2']])
     a = isaligned(lar1, lar2, axis=0)
     self.assertTrue(a, "Should return True")
Esempio n. 2
0
 def test_isaligned_5(self):
     "isaligned_5"
     lar1 = larry([[1, 2], [3, 4]], [['r1', 'r2'], ['c1', 'c2']])
     lar2 = larry([5, 6], [['r1', 'r2']])
     a = isaligned(lar1, lar2)
     self.assertTrue(~a, "Should return False")
Esempio n. 3
0
 def test_isaligned_2(self):
     "isaligned_2"
     lar1 = larry([[1, 2], [3, 4]], [['r1', 'r2'], ['c1', 'c2']])
     lar2 = larry([[4, 5], [6, 7]], [['r2', 'r1'], ['c1', 'c2']])
     a = isaligned(lar1, lar2, axis=0)
     self.assertTrue(~a, "Should return False")
Esempio n. 4
0
 def test_isaligned_3(self):
     "isaligned_3"
     lar1 = larry([[1, 2], [3, 4]], [['r1', 'r2'], ['c1', 'c2']])
     lar2 = larry([[5, 6], [7, 8]], [['r2', 'r1'], ['c1', 'c2']])
     a = isaligned(lar1, lar2, axis=1)
     self.assert_(a, "Should return True")
Esempio n. 5
0
 def test_isaligned_5(self):
     "isaligned_5"
     lar1 = larry([[1, 2], [3, 4]], [['r1', 'r2'], ['c1', 'c2']])
     lar2 = larry([5, 6], [['r1', 'r2']])
     a = isaligned(lar1, lar2)
     self.assertTrue(~a, "Should return False")
Esempio n. 6
0
 def test_isaligned_4(self):
     "isaligned_4"
     lar1 = larry([[1, 2], [3, 4]], [['r1', 'r2'], ['c1', 'c2']])
     lar2 = larry([5, 6], [['r1', 'r2']])
     a = isaligned(lar1, lar2, axis=0)
     self.assertTrue(a, "Should return True")
Esempio n. 7
0
 def test_isaligned_2(self):
     "isaligned_2"
     lar1 = larry([[1, 2], [3, 4]], [['r1', 'r2'], ['c1', 'c2']])
     lar2 = larry([[4, 5], [6, 7]], [['r2', 'r1'], ['c1', 'c2']])
     a = isaligned(lar1, lar2, axis=0)
     self.assertTrue(~a, "Should return False")