Assertions: Difference between revisions

Content added Content deleted
(→‎{{header|AutoHotkey}}: updated with real exceptions)
(→‎{{header|MATLAB}}: works also with Octave)
Line 388: Line 388:
<lang Mathematica>Assert[var===42]</lang>
<lang Mathematica>Assert[var===42]</lang>


=={{header|MATLAB}}==
=={{header|MATLAB}} / {{header|Octave}} ==


<lang MATLAB>assert(x == 42,'x = %d, not 42.',x);</lang>
<lang MATLAB>assert(x == 42,'x = %d, not 42.',x);</lang>