Assertions: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 13: | Line 13: | ||
=={{header|Aime}}== |
=={{header|Aime}}== |
||
<lang aime> |
<lang aime>integer x; |
||
x = 41; |
|||
if (x != 42) { |
|||
error("x is not 42"); |
|||
}</lang> |
|||
Executing the program will produce on standard error: |
Executing the program will produce on standard error: |
||
<pre></pre> |
<pre>aime: assert: 5: x is not 42</pre> |
||
=={{header|ALGOL 68}}== |
=={{header|ALGOL 68}}== |