Assertions: Difference between revisions

Adding Lasso Example
(Undo revision 171487 by Bfad (talk))
(Adding Lasso Example)
Line 495:
julia> x::String
ERROR: type: typeassert: expected String, got Int32</lang>
 
=={{header|Lasso}}==
<lang lasso>local(a) = 8
fail_if(
#a != 42,
error_code_runtimeAssertion,
error_msg_runtimeAssertion + ": #a is not 42"
)</lang>
{{out}}
<pre>-9945 Runtime assertion: #a is not 42</pre>
 
 
=={{header|Lisaac}}==
<lang Lisaac>? { n = 42 };</lang>
Anonymous user