From c411dd7ee643ae2953997018358e319d16dcef6a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 3 Mar 2008 02:29:33 +0000 Subject: fixed testing framework to actually use the extensions passed in and a few other minor cleanup things. --- test-markdown.py | 7 +++--- tests/extensions-x-footnotes/footnote.html | 40 ++++++++++++++++++++++++++++++ tests/extensions-x-footnotes/footnote.txt | 14 +++++++++++ tests/footnote.html | 40 ------------------------------ tests/footnote.txt | 14 ----------- tests/misc/blank.html | 0 tests/misc/blank.txt | 0 7 files changed, 58 insertions(+), 57 deletions(-) create mode 100644 tests/extensions-x-footnotes/footnote.html create mode 100644 tests/extensions-x-footnotes/footnote.txt delete mode 100644 tests/footnote.html delete mode 100644 tests/footnote.txt delete mode 100644 tests/misc/blank.html delete mode 100644 tests/misc/blank.txt diff --git a/test-markdown.py b/test-markdown.py index 94fdda4..48dd40b 100644 --- a/test-markdown.py +++ b/test-markdown.py @@ -197,7 +197,7 @@ def testDirectory(dir, measure_time = False) : mem = memory() t = time.clock() - md = markdown.Markdown() + md = markdown.Markdown(extensions=extensions) construction_time = time.clock() - t construction_mem = memory(mem) @@ -232,7 +232,7 @@ def testDirectory(dir, measure_time = False) : actual_output = "" actual_lines = [] - #md.source = "" + md.source = "" gc.collect() mem = memory() t = time.clock() @@ -351,5 +351,6 @@ markdown = __import__(MARKDOWN_FILE) testDirectory("tests/markdown-test", measure_time=True) testDirectory("tests/misc", measure_time=True) -#testDirectory("tests/extensions-x-footnotes-toc") +#testDirectory("tests/extensions-x-footnotes") +# testDirectory("tests/extensions-x-ext1-ext2") diff --git a/tests/extensions-x-footnotes/footnote.html b/tests/extensions-x-footnotes/footnote.html new file mode 100644 index 0000000..de0070d --- /dev/null +++ b/tests/extensions-x-footnotes/footnote.html @@ -0,0 +1,40 @@ +

This is the body with a footnote1 or two2 or more3 4. +

+ +

    +
  1. Footnote that ends with a list: +

    +
      +
    • + item 1 +
    • + +
    • + item 2 +
    • +
    +

    +

    + +
  2. + +
  3. This footnote is a blockquote. +

    +

    +

    + +
  4. + +
  5. A simple oneliner. +

    + +
  6. + +
  7. A footnote with multiple paragraphs. +

    +

    Paragraph two. +

    + +
  8. +
+
\ No newline at end of file diff --git a/tests/extensions-x-footnotes/footnote.txt b/tests/extensions-x-footnotes/footnote.txt new file mode 100644 index 0000000..07188d0 --- /dev/null +++ b/tests/extensions-x-footnotes/footnote.txt @@ -0,0 +1,14 @@ +This is the body with a footnote[^1] or two[^2] or more[^3] [^4]. + +[^1]: Footnote that ends with a list: + + * item 1 + * item 2 + +[^2]: > This footnote is a blockquote. + +[^3]: A simple oneliner. + +[^4]: A footnote with multiple paragraphs. + + Paragraph two. diff --git a/tests/footnote.html b/tests/footnote.html deleted file mode 100644 index 6114176..0000000 --- a/tests/footnote.html +++ /dev/null @@ -1,40 +0,0 @@ -

This is the body with a footnote1 or two2 or more3 4. -

- -

    -
  1. Footnote that ends with a list: -

    -
      -
    • - item 1 -
    • - -
    • - item 2 -
    • -
    -

    -

    - -
  2. - -
  3. This footnote is a blockquote. -

    -

    -

    - -
  4. - -
  5. A simple oneliner. -

    - -
  6. - -
  7. A footnote with multiple paragraphs. -

    -

    Paragraph two. -

    - -
  8. -
-
\ No newline at end of file diff --git a/tests/footnote.txt b/tests/footnote.txt deleted file mode 100644 index 07188d0..0000000 --- a/tests/footnote.txt +++ /dev/null @@ -1,14 +0,0 @@ -This is the body with a footnote[^1] or two[^2] or more[^3] [^4]. - -[^1]: Footnote that ends with a list: - - * item 1 - * item 2 - -[^2]: > This footnote is a blockquote. - -[^3]: A simple oneliner. - -[^4]: A footnote with multiple paragraphs. - - Paragraph two. diff --git a/tests/misc/blank.html b/tests/misc/blank.html deleted file mode 100644 index e69de29..0000000 diff --git a/tests/misc/blank.txt b/tests/misc/blank.txt deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3