Jump to content

Assertions in design by contract: Difference between revisions

Line 345:
 
=={{header|jq}}==
{{libheader|Jq-/assert.jq}}
{{works with|jq}}
 
Line 357:
In the following, it is assumed the "debug" mode of assertion checking has been used, e.g.
via the invocation: jq --arg assert debug
 
This mode allows execution to continue after an assertion violation has been detected.
<syntaxhighlight lang="jq">
include "rc-assert" {search: "."}; # or use the -L command-line option
2,478

edits

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