I built the aging but probably still-useful module extension HTML::Tidy this week (and, oi, that was an adventure) and it is failing one test. Built it using/for StrawberryPerl. I inserted blank lines in the screen output pasted below, for easier reading.
$ perl -T -Iblib/lib -Iblib/arch t/clean.t not ok 3 - $tidy->clean("") returns empty HTML document # Failed test '$tidy->clean("") returns empty HTML document' # at t/clean.t line 20. # '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> # <html> # <head> # <meta name="generator" content="tidyp for Windows (v1.04), see www.w +3.org"> # <title></title> # </head> # <body> # </body> # </html> # ' # doesn't match '(?^:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2// +EN"> # <html> # <head> # <meta name="generator" content="[^"]+"> # <title></title> # </head> # <body> # </body> # </html> # )' Looks like you failed 1 test of 3.
Platform:
osname=MSWin32
osvers=10.0.22631.5189
archname=MSWin32-x64-multi-thread
uname='Win32 strawberry-perl 5.40.2.1 # 05:42:50 Sun May 11 2025 x64'
Can anyone explain Andy's intent in how he coded that test? Thanks all.
Sep 19, 2025 at 22:28 UTC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |