From ff968c7f19bd76133f8efde0d4818d613155f9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Baumg=C3=A4rtner?= Date: Fri, 3 Nov 2023 18:57:37 +0100 Subject: [PATCH] add tests for fix issue #44 --- .../suite/fixtures/expected/issue_44.html | 102 ++++++++++++++++++ .../testfiles/nix/issue_44.confluence | 32 ++++++ .../testfiles/win/issue_44.confluence | 32 ++++++ 3 files changed, 166 insertions(+) create mode 100644 src/test/suite/fixtures/expected/issue_44.html create mode 100644 src/test/suite/fixtures/testfiles/nix/issue_44.confluence create mode 100644 src/test/suite/fixtures/testfiles/win/issue_44.confluence diff --git a/src/test/suite/fixtures/expected/issue_44.html b/src/test/suite/fixtures/expected/issue_44.html new file mode 100644 index 0000000..7e56052 --- /dev/null +++ b/src/test/suite/fixtures/expected/issue_44.html @@ -0,0 +1,102 @@ +

+

Issue #44 - lists with leading spaces

+

+

+

Case 1

+

+

+

+

+

+

Case 2

+

+

+

+

+

+

Case 3

+

+

+

    +
  1. abc
  2. +

    +

    +

  3. def
  4. +

    +

    +

    +
+

+

+

Case 4

+

+

+

    +
  1. abcv
  2. +

    +

    +

  3. def
  4. +

    +

    +

    +
+

+

+

Case 5

+

+

+

    +
  1. abc
  2. +

    +

    +

  3. def
  4. +

    +

    +

      +
    1. foo
    2. +

      +

      +

        +
      1. bar
      2. +

        +

        +

      +
    +
+

diff --git a/src/test/suite/fixtures/testfiles/nix/issue_44.confluence b/src/test/suite/fixtures/testfiles/nix/issue_44.confluence new file mode 100644 index 0000000..3d95a79 --- /dev/null +++ b/src/test/suite/fixtures/testfiles/nix/issue_44.confluence @@ -0,0 +1,32 @@ +h1. Issue [#44|https://github.com/denco/vscode-confluence-markup/issues/44] - lists with leading spaces + +h2. Case 1 + +- abc +-- abcdef + +h2. Case 2 + +- abc + -- abcdef + +h2. Case 3 + +# abc +# def + #* foo + #** bar + +h2. Case 4 + +# abcv +# def + ** foo + *** bar + +h2. Case 5 + +# abc +# def + ## foo + ### bar diff --git a/src/test/suite/fixtures/testfiles/win/issue_44.confluence b/src/test/suite/fixtures/testfiles/win/issue_44.confluence new file mode 100644 index 0000000..3d95a79 --- /dev/null +++ b/src/test/suite/fixtures/testfiles/win/issue_44.confluence @@ -0,0 +1,32 @@ +h1. Issue [#44|https://github.com/denco/vscode-confluence-markup/issues/44] - lists with leading spaces + +h2. Case 1 + +- abc +-- abcdef + +h2. Case 2 + +- abc + -- abcdef + +h2. Case 3 + +# abc +# def + #* foo + #** bar + +h2. Case 4 + +# abcv +# def + ** foo + *** bar + +h2. Case 5 + +# abc +# def + ## foo + ### bar