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