You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
286 B

  1. import unittest
  2. import kosmorrolib.core as core
  3. class CoreTestCase(unittest.TestCase):
  4. def test_flatten_list(self):
  5. self.assertEqual([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], core.flatten_list([0, 1, 2, [3, 4, [5, 6], 7], 8, [9]]))
  6. if __name__ == '__main__':
  7. unittest.main()