tony-o / perl6-html-parser-xml

html -> xml::document converter
2 stars 5 forks source link

Module fails its tests #21

Open Altai-man opened 4 years ago

Altai-man commented 4 years ago
➜  ~ zef install HTML::Parser::XML
===> Searching for: HTML::Parser::XML
===> Testing: HTML::Parser::XML:ver<0.1.2>:auth<github:tony-o>
[HTML::Parser::XML] # Failed test 'html:body:code:♥'
[HTML::Parser::XML] # at t/04_utf.t line 15
[HTML::Parser::XML] # expected: Match.new(pos => 255, from => 97, hash => Map.new(()), orig => "<html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"> </head> <body> <code> say CardGame.parse(\"a♥ a♥ 7♦ 8♣ j♥\"); # one hand, duplicate a♥ say CardGame.parse(\"a♥ 7♥ 7♦ 8♣ j♥; 10♥ j♥ q♥ k♥ a♥\"); # two hands, duplicate j♥ </code> </body> </html> ", list => (Match.new(list => (), orig => "<html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"> </head> <body> <code> say CardGame.parse(\"a♥ a♥ 7♦ 8♣ j♥\"); # one hand, duplicate a♥ say CardGame.parse(\"a♥ 7♥ 7♦ 8♣ j♥; 10♥ j♥ q♥ k♥ a♥\"); # two hands, duplicate j♥ </code> </body> </html> ", made => Any, pos => 248, from => 103, hash => Map.new(())),), made => Any)
[HTML::Parser::XML] #      got: (my \XML::Element_94592019661216 = XML::Element.new(name => "code", nodes => [XML::Text.new(text => "\nsay CardGame.parse(\"a♥ a♥ 7♦ 8♣ j♥\");\n# one hand, duplicate a♥\nsay CardGame.parse(\"a♥ 7♥ 7♦ 8♣ j♥; 10♥ j♥ q♥ k♥ a♥\");\n# two hands, duplicate j♥\n", parent => XML::Element_94592019661216)], attribs => {}, idattr => "id", parent => (my \XML::Element_94592019664168 = XML::Element.new(name => "body", nodes => [XML::Text.new(text => "\n", parent => XML::Element_94592019664168), XML::Element_94592019661216, XML::Text.new(text => "\n", parent => XML::Element_94592019664168)], attribs => {}, idattr => "id", parent => (my \XML::Element_94592019664312 = XML::Element.new(name => "html", nodes => [XML::Text.new(text => "\n", parent => XML::Element_94592019664312), (my \XML::Element_94592019664384 = XML::Element.new(name => "head", nodes => [XML::Text.new(text => "\n", parent => XML::Element_94592019664384), XML::Element.new(name => "meta", nodes => [], attribs => {:content("text/html; charset=UTF-8"), :http-equiv("Content-Type")}, idattr => "id", parent => XML::Element_94592019664384), XML::Text.new(text => "\n", parent => XML::Element_94592019664384)], attribs => {}, idattr => "id", parent => XML::Element_94592019664312)), XML::Text.new(text => "\n", parent => XML::Element_94592019664312), XML::Element_94592019664168, XML::Text.new(text => "\n", parent => XML::Element_94592019664312)], attribs => {}, idattr => "id", parent => Any))))))
[HTML::Parser::XML] # You failed 1 test of 3
===> Testing [FAIL]: HTML::Parser::XML:ver<0.1.2>:auth<github:tony-o>
Aborting due to test failure: HTML::Parser::XML:ver<0.1.2>:auth<github:tony-o> (use --force-test to override)