Hi Marc,
BaseX, the gift that keeps on giving, thanks to all that make it possible.
One of the nicest compliments that we got so far… Thanks ;)
So, a bit to my amazement, the following works:
let $equals := %unit:test function($a,$b) { unit:assert-equals($a,$b, 'Not equal') } return $equals(4,3)
Yes, it does, it will do so in the future. To add some more surprises: You can omit the %unit:test annotation, because it’s the unit:assert-equals function that raises the error in the XQUnit namespace.
Cheers, Christian