Assertion (software development): Difference between revisions

Content deleted Content added
Tag: Reverted
No edit summary
Tags: Manual revert Visual edit Mobile edit Mobile web edit
Line 43:
 
The use of assertions helps the programmer design, develop, and reason about a program.
 
'''What is Assertion ?'''
An Assertion is a statement that enables us to test our assumptions about our program. For example In an application where age is supposed to be input provided by the user, we assume that it can not be negative. So we check for the input provided by the user and confirm its norm By verifying this correctness, the assertion confirms our assumptions about the application's behavior and we gain the confidence that our application is error free. Visit this website to know about Assertion:- viewofpeoples
 
== Usage ==