def test5(self): util = TestUtil() list = util.creatList([1, 1]) solution = Solution() result = solution.deleteDuplicates(list) self.assertEquals("", util.printList(result))
def test1(self): util = TestUtil() list = util.creatList([0, 1, 2, 2, 3, 4]) solution = Solution() result = solution.deleteDuplicates(list) self.assertEquals("0134", util.printList(result))
def test3(self): util = TestUtil() list = util.creatList([1, 1, 1, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6]) solution = Solution() result = solution.deleteDuplicates(list) self.assertEquals("26", util.printList(result))