From 5f75bb3b1aee105b859c4c26d424af6b938b0f3c Mon Sep 17 00:00:00 2001 From: AlexanderSergan Date: Tue, 11 Jun 2019 12:28:51 +0300 Subject: [PATCH] Tests moved to own file `inconsistent_with_commonmark.txt`; Every case split into own test case; Total: 12, failing: 3; --- .../inconsistent_with_commonmark.txt | 84 +++++++++++++++++++ test/fixtures/markdown-it/smartquotes.txt | 53 ------------ 2 files changed, 84 insertions(+), 53 deletions(-) create mode 100644 test/fixtures/markdown-it/inconsistent_with_commonmark.txt diff --git a/test/fixtures/markdown-it/inconsistent_with_commonmark.txt b/test/fixtures/markdown-it/inconsistent_with_commonmark.txt new file mode 100644 index 0000000..ec47242 --- /dev/null +++ b/test/fixtures/markdown-it/inconsistent_with_commonmark.txt @@ -0,0 +1,84 @@ + +Should render correctly em/strong combination (*** case): +. +***example*** +. +

example

+. + +Should render correctly em/strong combination (_** case): +. +_**example**_ +. +

example

+. + +Should render correctly em/strong combination (**_ case): +. +**_example_** +. +

example

+. + +Should render correctly em/strong at the middle of word (*** case): +. +fo***ob***ar +. +

foobar

+. + +Should render correctly em/strong at the middle of word (_** case): +. +fo_**ob**_ar +. +

fo_ob_ar

+. + +Should render correctly em/strong at the middle of word (**_ case): +. +fo**_ob_**ar +. +

fo**ob**ar

+. + +Should render correctly em/strong at start of word (*** case): +. +***foo***bar +. +

foobar

+. + +Should render correctly em/strong at start of word (_** case): +. +_**foo**_bar +. +

_foo_bar

+. + +Should render correctly em/strong at start of word (**_ case): +. +**_foo_**bar +. +

**foo**bar

+. + +Should render correctly em/strong at the end of word (*** case): +. +foo***bar*** +. +

foobar

+. + +Should render correctly em/strong at the end of word (_** case): +. +foo_**bar**_ +. +

foo_bar_

+. + +Should render correctly em/strong at the end of word (**_ case): +. +foo**_bar_** +. +

foo**bar**

+. diff --git a/test/fixtures/markdown-it/smartquotes.txt b/test/fixtures/markdown-it/smartquotes.txt index 122268a..9763333 100644 --- a/test/fixtures/markdown-it/smartquotes.txt +++ b/test/fixtures/markdown-it/smartquotes.txt @@ -137,56 +137,3 @@ and “that”.

“this” and
“that”.

. - -Should render correctly em/strong combination: -. -***example*** - -_**example**_ - -**_example_** -. -

example

-

example

-

example

-. - -Should render correctly em/strong at the middle of word: -. -fo***ob***ar - -fo_**ob**_ar - -fo**_ob_**ar -. -

foobar

-

foobar

-

foobar

-. - -Should render correctly em/strong at start of word: -. -***foo***bar - -_**foo**_bar - -**_foo_**bar -. -

foobar

-

_foo_bar

-

**foo**bar

-. - -Should render correctly em/strong at the end of word: -. -foo***bar*** - -foo_**bar**_ - -foo**_bar_** -. -

foobar

-

foo_bar_

-

foo**bar**

-. -