예제 #1
0
 def test_search_nonempty_list( self ):
     ll = DoubleLinkedList()
     ll.add( 10 )
     self.assertNotEqual( ll.search(10), None )
예제 #2
0
 def test_search_empty_list( self ):
     ll = DoubleLinkedList()
     self.assertEqual( ll.search(10), None )