コード例 #1
0
 def test_equal_2(self):
     self.assertEqual(flatten_me([[1, 2], [3, 4]]), [1, 2, 3, 4])
コード例 #2
0
 def test_equal_7(self):
     self.assertEqual(
         flatten_me([[True, False], '!', '?', 99, [71, '@', True]]),
         [True, False, '!', '?', 99, 71, '@', True])
コード例 #3
0
 def test_equal_1(self):
     self.assertEqual(flatten_me([1, [2, 3], 4]), [1, 2, 3, 4])
コード例 #4
0
 def test_equal_5(self):
     self.assertEqual(flatten_me(['c', ['b', 'a', 'x']]),
                      ['c', 'b', 'a', 'x'])
コード例 #5
0
 def test_equal_6(self):
     self.assertEqual(flatten_me([['a', 'b'], 'c', ['d']]),
                      ['a', 'b', 'c', 'd'])
コード例 #6
0
 def test_equal_3(self):
     self.assertEqual(flatten_me([1, [2], [3], [4]]), [1, 2, 3, 4])
コード例 #7
0
 def test_equal_4(self):
     self.assertEqual(flatten_me(['a', ['b', 'd']]), ['a', 'b', 'd'])
コード例 #8
0
 def test_equal_1(self):
     self.assertEqual(flatten_me([1, [2, 3], 4]), [1, 2, 3, 4])
コード例 #9
0
 def test_equal_2(self):
     self.assertEqual(flatten_me([[1, 2], [3, 4]]), [1, 2, 3, 4])
コード例 #10
0
 def test_equal_7(self):
     self.assertEqual(flatten_me(
         [[True, False], '!', '?', 99, [71, '@', True]]
     ), [True, False, '!', '?', 99, 71, '@', True])
コード例 #11
0
 def test_equal_6(self):
     self.assertEqual(
         flatten_me([['a', 'b'], 'c', ['d']]), ['a', 'b', 'c', 'd']
     )
コード例 #12
0
 def test_equal_5(self):
     self.assertEqual(
         flatten_me(['c', ['b', 'a', 'x']]), ['c', 'b', 'a', 'x']
     )
コード例 #13
0
 def test_equal_4(self):
     self.assertEqual(flatten_me(['a', ['b', 'd']]), ['a', 'b', 'd'])
コード例 #14
0
 def test_equal_3(self):
     self.assertEqual(flatten_me([1, [2], [3], [4]]), [1, 2, 3, 4])