what is assertion?
Assertion (software development) In computer programming, an assertion is a statement that a predicate (Boolean-valued function, a trueâfalse expression) is expected to always be true at that point in the code. If an assertion evaluates to false at run time, an assertion failure results, which typically causes the program to crash, or to throw an assertion exception.