Closed aclavio closed 1 year ago
I wonder if it makes sense to introduce a /test/testHelper.sjs
implementation that either wraps the existing XQuery assertion functions or has JavaScript implementations that better match with JavaScript idioms.
Will see if we can do something useful in 1.4 for this - starting with the 3 scenarios in the original ticket.
I wonder if it makes sense to introduce a /test/testHelper.sjs implementation that either wraps the existing XQuery assertion functions or has JavaScript implementations that better match with JavaScript idioms.
I'm in favor of a testHelper.sjs
that works with JS idioms. I've run into some challenges with parameters getting passed between languages (discussed in PR155)
DEVEXP-552
Will be in 1.4.0. See #552.
The
assert-true
function reports success when passed a null, undefined, or empty sequence (xqy). This feels particularly egregious in SJS as it doesn't adhere to javascripts concept of "truthiness".