in reply to Let's play 'explain the error' in test suite for HTML::Tidy

I'm assuming the test first failed when run from the harness? Normally I'd use prove or prove --blib to manually run a single test. I don't visually see why it is failing, do you (given the raw actual output)?
  • Comment on Re: Let's play 'explain the error' in test suite for HTML::Tidy

Replies are listed 'Best First'.
Re^2: Let's play 'explain the error' in test suite for HTML::Tidy
by Intrepid (Curate) on Sep 23, 2025 at 01:24 UTC

    Sorry about the delay in responding. Yitzchak wrote:

    I'm assuming the test first failed when run from the harness?

    Your assumption is correct.

    I don't visually see why it is failing, do you (given the raw actual output)?

    That's right, I cannot see where the failure is. I guess it's trying to match a multi-line pattern (the second chunk of text) against the first chunk. The line below contains the only regexp metachars:

    # <meta name="generator" content="[^"]+">

    It's not a very important failure, I think, but after the amount of work I put into building a libtidy.a to link in the module build, I wanted a perfect suite of tests.

        — Soren

    Sep 23, 2025 at 01:21 UTC