Anonymous user
Assertions: Difference between revisions
Adding Lasso Example
(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>
|