Jump to content

Assertions: Difference between revisions

101 bytes added ,  11 months ago
no edit summary
No edit summary
Line 1,289:
doAssert(a == 42, "Not 42!")</syntaxhighlight>
This second kind of assertion cannot be disabled.
 
=={{header|Nutt}}==
<syntaxhighlight lang="Nutt">
module main
 
demand 5==42
 
end
</syntaxhighlight>
 
=={{header|Oberon-2}}==
13

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.