Exemple #1
0
 def test_dlist3(self):
     dlist = DList()
     self.assertTrue(dlist.is_empty())
Exemple #2
0
 def test_dlist2(self):
     dlist = DList()
     dlist.add_before_element(1, None)
     self.assertFalse(dlist.is_empty())
     self.assertEqual(dlist.size(), 1)
Exemple #3
0
 def test_dlist7(self):
     dlist = DList(1)
     dlist.remove_item(1)
     self.assertTrue(dlist.is_empty())
Exemple #4
0
 def test_dlist(self):
     dlist = DList()
     self.assertTrue(dlist.is_empty())
     self.assertEqual(dlist.size(), 0)
     self.assertTrue(dlist.is_empty())
Exemple #5
0
 def test_dlist6(self):
     dlist = DList(1)
     self.assertFalse(dlist.is_empty())
     self.assertEqual(dlist.size(), 1)