Esempio n. 1
0
 def test_second(self):
     test_list = List(1, 2, 3)
     test_list.append(4)
     assert str(List.get_normal_order(test_list)) == "1 2 3 4"
Esempio n. 2
0
 def test_sixth(self):
     test_list = List(1, 2, 3)
     test_list += [4, 5]
     assert str(List.get_normal_order(test_list)) == "1 2 3 4 5"
Esempio n. 3
0
 def test_first(self):
     test_list = List(1, 2, 3)
     self.assertEqual(str(List.get_normal_order(test_list)), "1 2 3")
Esempio n. 4
0
 def test_third(self):
     test_list = List(1, 2, 3, 4)
     tail_list = List(5, 6)
     test_list += tail_list
     assert str(List.get_normal_order(test_list)) == "1 2 3 4 5 6"