From e2d7ec48fcc5d20623c2445f51facdaba4813cc5 Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Thu, 1 Aug 2024 11:19:31 +0200 Subject: [PATCH] added some more test cases --- tests/data/attribute-class-in.md | 11 +++++++++++ tests/data/attribute-class-out.html | 4 ++++ tests/data/attribute-class-out.md | 11 +++++++++++ tests/data/ordered_lists-in.md | 6 ++++++ tests/data/ordered_lists-out.html | 11 +++++++++++ tests/data/ordered_lists-out.md | 6 ++++++ tests/data/pre-broken-in.md | 6 ++++++ tests/data/pre-broken-out.html | 6 ++++++ tests/data/pre-broken-out.md | 7 +++++++ 9 files changed, 68 insertions(+) create mode 100644 tests/data/attribute-class-in.md create mode 100644 tests/data/attribute-class-out.html create mode 100644 tests/data/attribute-class-out.md create mode 100644 tests/data/ordered_lists-in.md create mode 100644 tests/data/ordered_lists-out.html create mode 100644 tests/data/ordered_lists-out.md create mode 100644 tests/data/pre-broken-in.md create mode 100644 tests/data/pre-broken-out.html create mode 100644 tests/data/pre-broken-out.md diff --git a/tests/data/attribute-class-in.md b/tests/data/attribute-class-in.md new file mode 100644 index 0000000..11bb5cc --- /dev/null +++ b/tests/data/attribute-class-in.md @@ -0,0 +1,11 @@ +{class="some-class(value)"} +[Some text here!](/link){class="link(variant)" target="_blank"} + +{.-hello} +Some text + +{.smile-😎 .yolo} +Some text + +{id="smile-😎"} +Some text diff --git a/tests/data/attribute-class-out.html b/tests/data/attribute-class-out.html new file mode 100644 index 0000000..f90e536 --- /dev/null +++ b/tests/data/attribute-class-out.html @@ -0,0 +1,4 @@ +

Some text here!

+

Some text

+

Some text

+

Some text

diff --git a/tests/data/attribute-class-out.md b/tests/data/attribute-class-out.md new file mode 100644 index 0000000..52a1899 --- /dev/null +++ b/tests/data/attribute-class-out.md @@ -0,0 +1,11 @@ +{.some-class(value)} +[Some text here!](/link){.link(variant) target="_blank"} + +{.-hello} +Some text + +{.smile-😎 .yolo} +Some text + +{#smile-😎} +Some text diff --git a/tests/data/ordered_lists-in.md b/tests/data/ordered_lists-in.md new file mode 100644 index 0000000..c8371aa --- /dev/null +++ b/tests/data/ordered_lists-in.md @@ -0,0 +1,6 @@ +1. one +1. two +1. three + 1. three dot one + 1. three dot two +1. four diff --git a/tests/data/ordered_lists-out.html b/tests/data/ordered_lists-out.html new file mode 100644 index 0000000..aa4481a --- /dev/null +++ b/tests/data/ordered_lists-out.html @@ -0,0 +1,11 @@ +
    +
  1. one
  2. +
  3. two
  4. +
  5. three +
      +
    1. three dot one
    2. +
    3. three dot two
    4. +
    +
  6. +
  7. four
  8. +
diff --git a/tests/data/ordered_lists-out.md b/tests/data/ordered_lists-out.md new file mode 100644 index 0000000..688cbfc --- /dev/null +++ b/tests/data/ordered_lists-out.md @@ -0,0 +1,6 @@ +1. one +2. two +3. three + 1. three dot one + 2. three dot two +4. four diff --git a/tests/data/pre-broken-in.md b/tests/data/pre-broken-in.md new file mode 100644 index 0000000..e3eff67 --- /dev/null +++ b/tests/data/pre-broken-in.md @@ -0,0 +1,6 @@ +

Header

+
Some code
+
+Broken
+
+

Footer

diff --git a/tests/data/pre-broken-out.html b/tests/data/pre-broken-out.html new file mode 100644 index 0000000..306111c --- /dev/null +++ b/tests/data/pre-broken-out.html @@ -0,0 +1,6 @@ +

Header

+
Some code
+
+Broken
+
+

Footer

diff --git a/tests/data/pre-broken-out.md b/tests/data/pre-broken-out.md new file mode 100644 index 0000000..b246c9f --- /dev/null +++ b/tests/data/pre-broken-out.md @@ -0,0 +1,7 @@ +Header + +
Some code
+
+Broken
+
+

Footer