What am i missing in this i tried to cover all the testcase including 0

it would be helpful if you could point out the case where it fails