Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test error: MarkdownSharpTests.ConfigTest.TestEncodeProblemUrlCharacters #66

Open
GoogleCodeExporter opened this issue May 9, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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:

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant