hey-red/Markdown

Unit test error: MarkdownSharpTests.ConfigTest.TestEncodeProblemUrlCharacters

GoogleCodeExporter opened this issue · 1 comments

What steps will reproduce the problem?
1. Cloned from 0f7a8d615e69, downloaded source from my clone.
2. Built (unaltered) with VisualStudio 2013 Update 2
3. Run unit tests

What is the expected output? What do you see instead?

Output includes a large dump of HTML, and at least one error:

    014-09-04 19:04:15,240 [TestRunnerThread] INFO  MarkdownSharpTests.BaseTest - SimpleTests - Tests complete
    Tests run: 48, Errors: 0, Failures: 1, Inconclusive: 0, Time: 0.6770464 seconds
    Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
    Errors and Failures:
     1) Test Failure : MarkdownSharpTests.ConfigTest.TestEncodeProblemUrlCharacters
      Expected string length 49 but was 47. Strings differ at index 19.
      Expected: "<p><a href="/%27%2a%5f%5b%5d%28%29/">Foo</a></p>\n"
      But was:  "<p><a href="/%27%2a_%5b%5d%28%29/">Foo</a></p>\n"
      ------------------------------^
    at MarkdownSharpTests.ConfigTest.TestEncodeProblemUrlCharacters() in c:\try\burt-harris-balancing-groups\MarkdownSharpTests\ConfigTest.cs:line 81


What version of the product are you using? On what operating system?

* Windows Server 2012 R2
* Visual Studio 2013 Update 2
* MarkdownSharp built from change #0f7a8d615e69

Please provide any additional information below.

Looks like there were some checkins in April 2014 that may have introduced this 
error.   Some cleanup may be appropriate.

Original issue reported on code.google.com by Burt_Har...@hotmail.com on 5 Sep 2014 at 2:12

Attachments:

Looking for clarification as to current state of codebase.

Assuming briefly that the test, not the code is in error, I tried updating the 
test to remove the above error.    This worked, but there is still others error 
embedded in that large chunk of HTML.   This last of these says:

    ***** MarkdownSharpTests.MDTestTests.Test("MarkdownSharpTests.testfiles.mdtest_1
._1.Tidyness.text","MarkdownSharpTests.testfiles.mdtest_1._1.Tidyness.html","<bl
ockquote><p>A list within a blockquote:</p><ul><li>asterisk 1</li><li>asterisk 2
</li><li>asterisk 3</li></ul></blockquote>","<blockquote><p>A list within a bloc
kquote:</p><ul><li>asterisk 1</li><li>asterisk 2</li><li>asterisk 3</li></ul></b
lockquote>")



Original comment by Burt_Har...@hotmail.com on 5 Sep 2014 at 2:21