Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
In general, as an assertion is used to test a condition only when all of the following hold:
•the condition should never be false if the code is correct,
•the condition is not so trivial so as to obviously be always true, and
•the condition is in some sense internal to a body of software
an “assertion failure” is said to occur when an assertion detects that its condition is false and takes appropriate action, such as throwing an exception ..
Since this is exactly what an assertion is supposed to do, the term “assertion failure” is something of a misnomer ..
Nevertheless, the term is standard and is useful because it provides a name for an important situation ..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.