|-
| '''Summary'''
|Asserts that the effective boolean value of the specified {{Code|$test}} is true and returns an empty sequence. Otherwise, raises an error.The ''effective boolean value'' of an expression can be explicitly computed by using the {{Code|fn:boolean}} function.<br/>The unit failure message overridden with the {{Code|$message}} string.|-| '''Errors'''|{{Error|UNIT0001|#Errors}} the assertion failed, or an error was raised.|} ==unit:assert== {{Mark|Introduced with Version 7.8:}} {| width='100%'|-| width='120' | '''Signatures'''|{{Func|unit:assert-equals|$returned as item()*, $expected as item()*|empty-sequence()}}<br/>If {{Func|unit:assert-equals|$returned as item()*, $expected as item()*, $message as xs:string|empty-sequence()}}<br />|-| '''Summary'''|Asserts that the specified arguments are equal according to the optional rules of the {{Code|fn:deep-equals}} function. Otherwise, raises an error .<br/>The unit failure message overridden with the {{Code|$message}} can be specified as second argumentstring.
|-
| '''Errors'''