xsl-list
[Top] [All Lists]

Re: [xsl] Effective use of assertions?

2022-05-01 03:01:33
Just read following section from XSLT 3.0 spec,

https://www.w3.org/TR/xslt-30/#diagnostics

That sounds good.

On Fri, Apr 29, 2022 at 8:41 PM Dimitre Novatchev 
dnovatchev(_at_)gmail(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

In unit testing assertions are used to confirm desired properties of the
result, not of the input.

Checking desired properties of the input is called validation. Validation
can be performed in many ways, including "catch-all" templates.

Validations and assertions may seem similar, but they have different
goals. Assertions aren't even executed if the input validation fails.

Thanks,
Dimitre



-- 
Regards,
Mukul Gandhi
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [xsl] Effective use of assertions?, Mukul Gandhi mukulg(_at_)softwarebytes(_dot_)org <=