mmark-md / mmark

Strict markdown processor for writers
Other
111 stars 20 forks source link

testsuite failing for Stackage Nightly #80

Closed juhp closed 3 years ago

juhp commented 3 years ago
Test suite failure for package mmark-0.0.7.3                                                                                   
: 
    Failures:                                                                                                                                                                           

      tests/Text/MMark/TestUtils.hs:111:37:                                                                                                                                             
      1) parse and render, 6.5 Links, CM488                                                                                                                                             
           expected: "<p><a href=\"/uri\"><img alt=\"moon\" src=\"moon.jpg\"></a></p>\n"                                                                                                
            but got: "<p><a href=\"/uri\"><img src=\"moon.jpg\" alt=\"moon\"></a></p>\n"                                                                                                

      To rerun use: --match "/parse and render/6.5 Links/CM488/"                                                                                                                        

      tests/Text/MMark/TestUtils.hs:111:37:                                                                                    
      2) parse and render, 6.5 Links, CM502                                                                                    
           expected: "<p><a href=\"/uri\"><img alt=\"moon\" src=\"moon.jpg\"></a></p>\n"                                                                                                
            but got: "<p><a href=\"/uri\"><img src=\"moon.jpg\" alt=\"moon\"></a></p>\n"                                                                                                

      To rerun use: --match "/parse and render/6.5 Links/CM502/"                                                                                                                        

      tests/Text/MMark/TestUtils.hs:111:37:                                                                                                                                             
      3) parse and render, 6.6 Images, CM543                                                                                   
           expected: "<p><img alt=\"foo\" title=\"title\" src=\"/url\"></p>\n"                                                                                                                      but got: "<p><img src=\"/url\" title=\"title\" alt=\"foo\"></p>\n"                                                                                                          
                                                                                                                                                                                              To rerun use: --match "/parse and render/6.6 Images/CM543/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      4) parse and render, 6.6 Images, CM544                                                   
           expected: "<p><img alt=\"foo bar\" title=\"train &amp; tracks\" src=\"train.jpg\"></p>\n"                                                                                    
            but got: "<p><img src=\"train.jpg\" title=\"train &amp; tracks\" alt=\"foo bar\"></p>\n"                                                                                    

      To rerun use: --match "/parse and render/6.6 Images/CM544/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      5) parse and render, 6.6 Images, CM546                                                                                                                                                       expected: "<p><img alt=\"foo bar\" src=\"/url2\"></p>\n"                                                                                                                     
            but got: "<p><img src=\"/url2\" alt=\"foo bar\"></p>\n"                                                                                                                                                                   
      To rerun use: --match "/parse and render/6.6 Images/CM546/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      6) parse and render, 6.6 Images, CM548                                                
           expected: "<p><img alt=\"foo bar\" title=\"train &amp; tracks\" src=\"train.jpg\"></p>\n"                                                                                    
            but got: "<p><img src=\"train.jpg\" title=\"train &amp; tracks\" alt=\"foo bar\"></p>\n"                                                                                    

      To rerun use: --match "/parse and render/6.6 Images/CM548/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      7) parse and render, 6.6 Images, CM549                                                
           expected: "<p><img alt=\"foo\" src=\"train.jpg\"></p>\n"                                                                                                                     
            but got: "<p><img src=\"train.jpg\" alt=\"foo\"></p>\n"                                                                                                                     

      To rerun use: --match "/parse and render/6.6 Images/CM549/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                                                                                                 [367/188774]
      8) parse and render, 6.6 Images, CM550                                                
           expected: "<p>My <img alt=\"foo bar\" title=\"title\" src=\"/path/to/train.jpg\"></p>\n"                                                                                     
            but got: "<p>My <img src=\"/path/to/train.jpg\" title=\"title\" alt=\"foo bar\"></p>\n"                                                                                     

      To rerun use: --match "/parse and render/6.6 Images/CM550/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      9) parse and render, 6.6 Images, CM551                                                
           expected: "<p><img alt=\"foo\" src=\"url\"></p>\n"                               
            but got: "<p><img src=\"url\" alt=\"foo\"></p>\n"                               

      To rerun use: --match "/parse and render/6.6 Images/CM551/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      10) parse and render, 6.6 Images, CM552                                               
           expected: "<p><img alt src=\"/url\"></p>\n"                                      
            but got: "<p><img src=\"/url\" alt></p>\n"                                      

      To rerun use: --match "/parse and render/6.6 Images/CM552/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      11) parse and render, 6.6 Images, CM553                                               
           expected: "<p><img alt=\"foo\" src=\"/url\"></p>\n"                              
            but got: "<p><img src=\"/url\" alt=\"foo\"></p>\n"                              

      To rerun use: --match "/parse and render/6.6 Images/CM553/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      12) parse and render, 6.6 Images, CM554                                               
           expected: "<p><img alt=\"foo\" src=\"/url\"></p>\n"                              
            but got: "<p><img src=\"/url\" alt=\"foo\"></p>\n"                              

      To rerun use: --match "/parse and render/6.6 Images/CM554/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      13) parse and render, 6.6 Images, CM555                                               
           expected: "<p><img alt=\"foo\" title=\"title\" src=\"/url\"></p>\n"                                                                                                          
            but got: "<p><img src=\"/url\" title=\"title\" alt=\"foo\"></p>\n"                                                                                                          

      To rerun use: --match "/parse and render/6.6 Images/CM555/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      14) parse and render, 6.6 Images, CM556                                               
           expected: "<p><img alt=\"foo bar\" title=\"title\" src=\"/url\"></p>\n"                                                                                                      
            but got: "<p><img src=\"/url\" title=\"title\" alt=\"foo bar\"></p>\n"                                                                                                      

      To rerun use: --match "/parse and render/6.6 Images/CM556/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      15) parse and render, 6.6 Images, CM557                                               
           expected: "<p><img alt=\"Foo\" title=\"title\" src=\"/url\"></p>\n"                                                                                              [316/188774]
            but got: "<p><img src=\"/url\" title=\"title\" alt=\"Foo\"></p>\n"                                                                                                          

      To rerun use: --match "/parse and render/6.6 Images/CM557/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      16) parse and render, 6.6 Images, CM559                                               
           expected: "<p><img alt=\"foo\" title=\"title\" src=\"/url\"></p>\n"                                                                                                          
            but got: "<p><img src=\"/url\" title=\"title\" alt=\"foo\"></p>\n"                                                                                                          

      To rerun use: --match "/parse and render/6.6 Images/CM559/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      17) parse and render, 6.6 Images, CM560                                               
           expected: "<p><img alt=\"foo bar\" title=\"title\" src=\"/url\"></p>\n"                                                                                                      
            but got: "<p><img src=\"/url\" title=\"title\" alt=\"foo bar\"></p>\n"                                                                                                      

      To rerun use: --match "/parse and render/6.6 Images/CM560/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      18) parse and render, 6.6 Images, CM562                                               
           expected: "<p><img alt=\"Foo\" title=\"title\" src=\"/url\"></p>\n"                                                                                                          
            but got: "<p><img src=\"/url\" title=\"title\" alt=\"Foo\"></p>\n"                                                                                                          

      To rerun use: --match "/parse and render/6.6 Images/CM562/"                                                                                                                       

      tests/Text/MMark/TestUtils.hs:111:37:                                                 
      19) parse and render, given a complete, comprehensive document, outputs expected the HTML fragment                                                                                
           expected: "<h1 id=\"lorem-ipsum\">Lorem ipsum</h1>\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer varius mi\norci, rhoncus ornare nunc tincidunt nec. A
liquam cursus posuere ornare.\nQuisque posuere euismod nunc, sed pellentesque metus hendrerit eu. Donec\nscelerisque accumsan ante quis interdum. Nullam nec mauris dolor. Lorem\nipsum 
dolor sit amet, consectetur adipiscing elit. Phasellus id porttitor\nnunc, sed laoreet eros. Maecenas ipsum ex, sagittis ut quam quis, vehicula\nfringilla tortor. Vestibulum quis conse
quat mauris, sed porta risus.\nVestibulum nec ornare leo. Cras pharetra, ex sed dapibus pretium, diam\nlectus accumsan enim, at malesuada tellus lorem et orci. Sed condimentum\nvarius 
ex in mollis.</p>\n<p><a href=\"https://example.org\">https://example.org</a></p>\n<p>Ut in imperdiet neque. Etiam iaculis rhoncus nisl vel porta. Praesent velit\norci, laoreet suscipi
t bibendum eu, ornare et orci. Fusce feugiat, felis a\nvehicula pulvinar, nulla purus dictum arcu, et varius urna purus et nibh.\nDuis lobortis fringilla ligula, in aliquet sem maximus
 a. Suspendisse\npotenti. Nullam consequat tellus a lectus vestibulum faucibus. Ut hendrerit\ndolor ut libero efficitur accumsan. Mauris dapibus, leo non porttitor\nlobortis, lectus ip
sum tempor metus, quis iaculis arcu quam malesuada nulla.</p>\n<h2 id=\"nullam-luctus\">Nullam luctus?!</h2>\n<p>Nullam <a href=\"http://example.org/luctus\">luctus</a> placerat nisl i
n dapibus.\nPhasellus id erat eros. Ut gravida risus sit amet massa tempor volutpat.\nVestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere\ncubilia Curae; Quisque d
ictum sapien vel enim tempor, quis ornare justo\nconsequat. Suspendisse porttitor mollis consectetur. Curabitur sodales,\nrisus eu dapibus mattis, tellus dolor condimentum dolor, in ul
tricies nibh\naugue vel nibh. Vivamus imperdiet, orci id posuere sollicitudin, diam purus\nconsequat eros, quis dictum mauris lacus ac lectus. Cras vitae pharetra\nrisus. Maecenas vehi
cula, leo vitae semper tristique, libero urna\nconsectetur massa, eget pharetra magna est nec massa. Vestibulum malesuada\nlobortis lacinia.</p>\n<p><img alt=\"My image\" src=\"https:/
/example.org/image.png\"></p>\n<p>Phasellus tincidunt metus quam, vel mollis turpis ultrices et. Phasellus\nconsequat diam eu turpis sollicitudin tempus. Fusce suscipit bibendum nisl,\
nquis rutrum eros volutpat in. Fusce tempor nisi eu ligula volutpat, eu\nultricies arcu blandit. Pellentesque habitant morbi tristique senectus et\nnetus et malesuada fames ac turpis e
gestas. Duis eleifend malesuada\nvenenatis. Morbi tincidunt quis diam ac aliquam.</p>\n<ul>\n<li>\nFoo\n</li>\n<li>\nBar\n<ol>\n<li>\nOne\n</li>\n<li>\nTwo\n</li>\n<li>\nThree\n</li>\n
</ol>\n</li>\n<li>\nBaz\n</li>\n</ul>\n<h2 id=\"sed-euismod\">Sed euismod</h2>\n<p>Sed euismod nisi lorem, ac tempor nibh venenatis at. Integer porta nibh quis\nmauris vehicula porta. 
Sed vel tellus nec lacus porttitor sollicitudin. Sed\nfacilisis nisl lorem, sed aliquet leo convallis sed. Curabitur vitae aliquet\ndiam, ac commodo ligula. Nulla aliquet odio at tellu
s auctor pellentesque.\nIn sagittis elementum tortor sed lobortis. Fusce nibh turpis, posuere eget\ntristique eget, commodo quis leo.</p>\n<hr>\n<p>Etiam faucibus, ipsum id lobortis mo
lestie, dolor lectus cursus purus, nec\nvolutpat massa odio vitae ligula. Nulla non consectetur ligula. In sem\nfelis, vehicula a convallis ut, pellentesque nec diam. Integer ullamcorp
er\nrutrum nulla. Nam arcu dolor, placerat nec molestie et, eleifend sit amet\nante. Suspendisse laoreet orci sit amet vestibulum varius. In at leo eu\nlorem tincidunt facilisis. Ut el
ementum elit ornare risus convallis, ut\nviverra orci pretium. Vivamus mi orci, lacinia ac ligula a, condimentum\naliquet ligula.</p>\n<h3 id=\"curabitur-ullamcorper\">Curabitur ullamc
orper</h3>\n<blockquote>\n<p>Curabitur ullamcorper, lectus id porttitor vehicula, augue purus ornare\norci, ut consequat tellus mauris ac sem. Cras tincidunt sagittis mi, sit\namet viv
erra erat ultrices vulputate. Donec urna nulla, malesuada non\ncursus et, posuere eu sapien. Fusce cursus mauris odio, id tincidunt felis\ntincidunt sed. Duis vulputate lectus eu tellu
:

There is also a similar failure for mmark-ext-0.2.1.3 for the long text.

mrkkrp commented 3 years ago

I fixed this (hopefully for good) and released mmark-0.0.7.4.