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

Get CommonMark 0.30 tests to pass for "Tabs" section #821

Open
DavidSSL opened this issue Apr 25, 2023 · 0 comments
Open

Get CommonMark 0.30 tests to pass for "Tabs" section #821

DavidSSL opened this issue Apr 25, 2023 · 0 comments

Comments

@DavidSSL
Copy link

DavidSSL commented Apr 25, 2023

Following the discussion in #90, this is in my opinion one of the steps we have to undertake.

When using the CommonMark version 0.30 test cases, the following battery of tests

[<Test>]
[<TestCaseSource("getTests")>]
let ``Commonmark specification`` (_section: string) (markdown: string) (html: string) =
printfn "Markdown: '%s'" markdown
(Markdown.ToHtml(markdown, "\n")) |> should equal html

, experience the problem that some of the tests start failing.

The aim would be to ensure that the tests falling under the Tabs section to pass.

In order to do that, we have to:

  {
    "markdown": ">\t\tfoo\n",
    "html": "<blockquote>\n<pre><code>  foo\n</code></pre>\n</blockquote>\n",
    "example": 6,
    "start_line": 419,
    "end_line": 426,
    "section": "Tabs"
  },

we get:

Expected string length 58 but was 56. Strings differ at index 24.
  Expected: "<blockquote>\n<pre><code>  foo\n</code></pre>\n</blockquote>\n"
  But was:   "<blockquote>\n<pre><code>foo\n</code></pre>\n</blockquote>\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant