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] )
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] )
def test_ravel2D(self): test_array = [] self.assertEqual( util.ravel2D( test_array ), [] )
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])
def test_ravel2D(self): test_array = [] self.assertEqual(util.ravel2D(test_array), [])
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])