def test5(self): util = TestUtil() list = util.creatList([3,5]) solution = Solution() result = solution.reverseBetween(list, 1, 1) self.assertEquals("35", util.printList(result))
def test3(self): util = TestUtil() list = util.creatList([ 1, 2, 3,4, 5]) solution = Solution() result = solution.reverseBetween(list, 2, 4) self.assertEquals("14325", util.printList(result))
def test1(self): util = TestUtil() list =util.creatList([0, 1, 2, 4, 5, 7]) solution= Solution() result=solution.reverseBetween(list,2,3) self.assertEquals("021457", util.printList(result))