def test_one_empty(self):
     zip_gen_above = localcomplete.zip_flatten_longest([1, 2], [])
     self.assertEqual(list(zip_gen_above), [1, 2])
     zip_gen_below = localcomplete.zip_flatten_longest([], [1, 2])
     self.assertEqual(list(zip_gen_below), [1, 2])
 def test_zeros_are_present(self):
     zip_gen = localcomplete.zip_flatten_longest([1, 0], [11, 0, 33, 44])
     self.assertEqual(list(zip_gen), [1, 11, 0, 0, 33, 44])
 def test_both_empty(self):
     zip_gen = localcomplete.zip_flatten_longest([], [])
     self.assertEqual(list(zip_gen), [])
 def test_below_tail(self):
     zip_gen = localcomplete.zip_flatten_longest([1, 2], [11, 22, 33, 44])
     self.assertEqual(list(zip_gen), [1, 11, 2, 22, 33, 44])
 def test_above_tail(self):
     zip_gen = localcomplete.zip_flatten_longest([1, 2, 3, 4], [11, 22])
     self.assertEqual(list(zip_gen), [1, 11, 2, 22, 3, 4])
Exemplo n.º 6
0
 def test_one_empty(self):
     zip_gen_above = localcomplete.zip_flatten_longest([1, 2], [])
     self.assertEqual(list(zip_gen_above), [1, 2])
     zip_gen_below = localcomplete.zip_flatten_longest([], [1, 2])
     self.assertEqual(list(zip_gen_below), [1, 2])
Exemplo n.º 7
0
 def test_both_empty(self):
     zip_gen = localcomplete.zip_flatten_longest([], [])
     self.assertEqual(list(zip_gen), [])
Exemplo n.º 8
0
 def test_zeros_are_present(self):
     zip_gen = localcomplete.zip_flatten_longest([1, 0], [11, 0, 33, 44])
     self.assertEqual(list(zip_gen), [1, 11, 0, 0, 33, 44])
Exemplo n.º 9
0
 def test_above_tail(self):
     zip_gen = localcomplete.zip_flatten_longest([1, 2, 3, 4], [11, 22])
     self.assertEqual(list(zip_gen), [1, 11, 2, 22, 3, 4])
Exemplo n.º 10
0
 def test_below_tail(self):
     zip_gen = localcomplete.zip_flatten_longest([1, 2], [11, 22, 33, 44])
     self.assertEqual(list(zip_gen), [1, 11, 2, 22, 33, 44])