Beispiel #1
0
 def test_flatten_empty(self):
     self.assertEqual([], list_ops.flat([]))
Beispiel #2
0
 def test_flatten_once(self):
     self.assertEqual(["x", "y", "z"], list_ops.flat([["x", "y", "z"]]))
Beispiel #3
0
 def test_flatten_nested(self):
     self.assertEqual([1, 2, 3, 4], list_ops.flat([[[1, 2], [3]], [[4]]]))
Beispiel #4
0
 def test_flatten_empty(self):
     self.assertEqual([], list_ops.flat([]))
Beispiel #5
0
 def test_flatten_once(self):
     self.assertEqual(["x", "y", "z"], list_ops.flat([["x", "y", "z"]]))
Beispiel #6
0
 def test_flatten_nested(self):
     self.assertEqual([1, 2, 3, 4], list_ops.flat([[[1, 2], [3]], [[4]]]))