예제 #1
0
 def test_ravel2DEmptySublists(self):
     test_array = [[1,2,3,4],[],[1,2,3,4]]
     self.assertEqual( util.ravel2D( test_array ), [1,2,3,4,1,2,3,4] )
예제 #2
0
 def test_ravel2DOddSize(self):
     test_array = [[1,2,3,4],[1,2,3,4,5]]
     self.assertEqual( util.ravel2D( test_array ), [1,2,3,4,1,2,3,4,5] )
예제 #3
0
 def test_ravel2D(self):
     test_array = []
     self.assertEqual( util.ravel2D( test_array ), [] )
예제 #4
0
 def test_ravel2DOddSize(self):
     test_array = [[1, 2, 3, 4], [1, 2, 3, 4, 5]]
     self.assertEqual(util.ravel2D(test_array), [1, 2, 3, 4, 1, 2, 3, 4, 5])
예제 #5
0
 def test_ravel2D(self):
     test_array = []
     self.assertEqual(util.ravel2D(test_array), [])
예제 #6
0
 def test_ravel2DEmptySublists(self):
     test_array = [[1, 2, 3, 4], [], [1, 2, 3, 4]]
     self.assertEqual(util.ravel2D(test_array), [1, 2, 3, 4, 1, 2, 3, 4])