what is the use of assertion when i can use if statement to get the same result.

could any one please tell me.


thank you.