Assertions: Difference between revisions

Content added Content deleted
No edit summary
Line 1,289: Line 1,289:
doAssert(a == 42, "Not 42!")</syntaxhighlight>
doAssert(a == 42, "Not 42!")</syntaxhighlight>
This second kind of assertion cannot be disabled.
This second kind of assertion cannot be disabled.

=={{header|Nutt}}==
<syntaxhighlight lang="Nutt">
module main

demand 5==42

end
</syntaxhighlight>


=={{header|Oberon-2}}==
=={{header|Oberon-2}}==