Jump to content

Assertions: Difference between revisions

Added BBC BASIC
No edit summary
(Added BBC BASIC)
Line 47:
Pause ; pauses the script, use ExitApp to exit instead
}</lang>
 
=={{header|BBC BASIC}}==
<lang bbcbasic> PROCassert(a% = 42)
END
DEF PROCassert(bool%)
IF NOT bool% THEN ERROR 100, "Assertion failed"
ENDPROC</lang>
 
=={{header|Brat}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.