Assertion (software development): Difference between revisions

Content deleted Content added
No edit summary
assert is not a keyword in C
Tags: Mobile edit Mobile app edit iOS app edit App section source
Line 9:
 
The following code contains two assertions, <code>x > 0</code> and <code>x > 1</code>, and they are indeed true at the indicated points during execution:
<syntaxhighlight lang="cjava">
x = 1;
assert x > 0;