예제 #1
0
 def test_no_contiguous1(self):
     assert not internal.get_c_contiguity((3, 4, 3), (30, 6, 2), 2)
예제 #2
0
 def test_normal4(self):
     assert internal.get_c_contiguity((), (), 4)
예제 #3
0
 def test_normal5(self):
     assert internal.get_c_contiguity((3, 1), (4, 8), 4)
예제 #4
0
 def test_normal2(self):
     assert internal.get_c_contiguity((3, 1, 3), (6, 100, 2), 2)
예제 #5
0
 def test_normal3(self):
     assert internal.get_c_contiguity((3, ), (4, ), 4)
예제 #6
0
 def test_normal1(self):
     self.assertTrue(internal.get_c_contiguity((3, 4, 3), (24, 6, 2), 2))
예제 #7
0
 def test_normal1(self):
     assert internal.get_c_contiguity((3, 4, 3), (24, 6, 2), 2)
예제 #8
0
 def test_zero_in_shape(self):
     self.assertTrue(internal.get_c_contiguity((1, 0, 1), (1, 1, 1), 3))
예제 #9
0
 def test_zero_in_shape(self):
     assert internal.get_c_contiguity((1, 0, 1), (1, 1, 1), 3)
예제 #10
0
 def test_no_contiguous1(self):
     self.assertFalse(internal.get_c_contiguity((3, 4, 3), (30, 6, 2), 2))
예제 #11
0
 def test_no_contiguous3(self):
     self.assertFalse(internal.get_c_contiguity((3, 1, 3), (6, 6, 4), 2))
예제 #12
0
 def test_normal5(self):
     self.assertTrue(internal.get_c_contiguity((3, 1), (4, 8), 4))
예제 #13
0
 def test_normal4(self):
     self.assertTrue(internal.get_c_contiguity((), (), 4))
예제 #14
0
 def test_normal2(self):
     self.assertTrue(internal.get_c_contiguity((3, 1, 3), (6, 100, 2), 2))
예제 #15
0
 def test_no_contiguous2(self):
     assert not internal.get_c_contiguity((3, 1, 3), (24, 6, 2), 2)
예제 #16
0
 def test_all_one_shape(self):
     assert internal.get_c_contiguity((1, 1, 1), (1, 1, 1), 3)
예제 #17
0
 def test_no_contiguous3(self):
     assert not internal.get_c_contiguity((3, 1, 3), (6, 6, 4), 2)
예제 #18
0
 def test_all_one_shape(self):
     self.assertTrue(internal.get_c_contiguity((1, 1, 1), (1, 1, 1), 3))