Jump to content

Assertions: Difference between revisions

No edit summary
Line 13:
 
=={{header|Aime}}==
<lang aime></lang>integer x;
 
x = 41;
if (x != 42) {
error("x is not 42");
}</lang>
Executing the program will produce on standard error:
<pre>aime: assert: 5: x is not 42</pre>
 
=={{header|ALGOL 68}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.