예제 #1
0
파일: test_ch2.py 프로젝트: rmartind/ctci
    def test_table_one_dup(self):
        self.a.insert(3)
        self.a.insert(2)
        self.a.insert(6)
        self.a.insert(2)
        self.a.insert(1)

        rmdups.remove_with_table(self.a)
        self.a.delete(2)
        self.assertEqual(self.a.search(2), None)
예제 #2
0
파일: test_ch2.py 프로젝트: rmartind/ctci
 def test_table_no_dup(self):
     self.a.insert(4)
     self.a.insert(2)
     self.a.insert(3)
     rmdups.remove_with_table(self.a)