petdance/html-tidy5

Still failures on non-Linux systems (0.02)

Closed this issue · 1 comments

Still two tests are failing on non-Linux systems:


#   Failed test '$tidy->clean("") returns empty HTML document'
#   at t/clean.t line 21.
#                   '<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="HTML Tidy for HTML5 for FreeBSD version 5.6.0">
# <title></title>
# </head>
# <body>
# </body>
# </html>
# '
#     doesn't match '(?^:<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="HTML Tidy for HTML5 for Linux version \d+\.\d+\.\d+">
# <title></title>
# </head>
# <body>
# </body>
# </html>
# )'
# Looks like you failed 1 test of 3.
t/clean.t ............ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 

and

#   Failed test 'Cleaned up properly'
#   at t/roundtrip.t line 32.
#          got: '<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="HTML Tidy for HTML5 for FreeBSD version 5.6.0">
# <title></title>
# </head>
# <body>
# <a href="http://www.example.com/"><em>This is a test.</em></a>
# </body>
# </html>
# '
#     expected: '<!DOCTYPE html>
# <html>
# <head>
# <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.6.0">
# <title></title>
# </head>
# <body>
# <a href="http://www.example.com/"><em>This is a test.</em></a>
# </body>
# </html>
# '
# Looks like you failed 1 test of 3.
t/roundtrip.t ........ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 

Fixed in 2f5ba6f. Thanks very much for being such a big help on this.