Assertions in design by contract: Difference between revisions

m
m (→‎{{header|Wren}}: Minor tidy)
 
Line 827:
{{libheader|Wren-assert}}
Wren doesn't support assertions natively though they (and design by contract) can be simulated using a library.
<syntaxhighlight lang="ecmascriptwren">import "./assert" for Assert
import "./math" for Nums
 
// Assert.disabled = true
9,482

edits