- 1
Assertion
Please I donât understand can someone please explain it to me
2 Answers
+ 1
An assertion is a condition that the programmer assumes to be true, otherwise the program cannot work correctly.
If the assertion fails, the program stops with an error message.
This is commonly used when writing test cases, but it is not a good practice to put it in normal code, because it can result in the irregular termination of the program.
0
Thank u