Browse Source

Tests moved to own file `inconsistent_with_commonmark.txt`; Every case split into own test case; Total: 12, failing: 3;

pull/562/head
AlexanderSergan 6 years ago
parent
commit
5f75bb3b1a
  1. 84
      test/fixtures/markdown-it/inconsistent_with_commonmark.txt
  2. 53
      test/fixtures/markdown-it/smartquotes.txt

84
test/fixtures/markdown-it/inconsistent_with_commonmark.txt

@ -0,0 +1,84 @@
Should render correctly em/strong combination (*** case):
.
***example***
.
<p><em><strong>example</strong></em></p>
.
Should render correctly em/strong combination (_** case):
.
_**example**_
.
<p><em><strong>example</strong></em></p>
.
Should render correctly em/strong combination (**_ case):
.
**_example_**
.
<p><strong><em>example</em></strong></p>
.
Should render correctly em/strong at the middle of word (*** case):
.
fo***ob***ar
.
<p>fo<em><strong>ob</strong></em>ar</p>
.
Should render correctly em/strong at the middle of word (_** case):
.
fo_**ob**_ar
.
<p>fo_<strong>ob</strong>_ar</p>
.
Should render correctly em/strong at the middle of word (**_ case):
.
fo**_ob_**ar
.
<p>fo**<em>ob</em>**ar</p>
.
Should render correctly em/strong at start of word (*** case):
.
***foo***bar
.
<p><em><strong>foo</strong></em>bar</p>
.
Should render correctly em/strong at start of word (_** case):
.
_**foo**_bar
.
<p>_<strong>foo</strong>_bar</p>
.
Should render correctly em/strong at start of word (**_ case):
.
**_foo_**bar
.
<p>**<em>foo</em>**bar</p>
.
Should render correctly em/strong at the end of word (*** case):
.
foo***bar***
.
<p>foo<em><strong>bar</strong></em></p>
.
Should render correctly em/strong at the end of word (_** case):
.
foo_**bar**_
.
<p>foo_<strong>bar</strong>_</p>
.
Should render correctly em/strong at the end of word (**_ case):
.
foo**_bar_**
.
<p>foo**<em>bar</em>**</p>
.

53
test/fixtures/markdown-it/smartquotes.txt

@ -137,56 +137,3 @@ and “that”.</p>
<p>“this” and<br>
“that”.</p>
.
Should render correctly em/strong combination:
.
***example***
_**example**_
**_example_**
.
<p><em><strong>example</strong></em></p>
<p><em><strong>example</strong></em></p>
<p><strong><em>example</em></strong></p>
.
Should render correctly em/strong at the middle of word:
.
fo***ob***ar
fo_**ob**_ar
fo**_ob_**ar
.
<p>fo<em><strong>ob</strong></em>ar</p>
<p>fo<em><strong>ob</strong></em>ar</p>
<p>fo<strong><em>ob</em></strong>ar</p>
.
Should render correctly em/strong at start of word:
.
***foo***bar
_**foo**_bar
**_foo_**bar
.
<p><em><strong>foo</strong></em>bar</p>
<p>_<strong>foo</strong>_bar</p>
<p>**<em>foo</em>**bar</p>
.
Should render correctly em/strong at the end of word:
.
foo***bar***
foo_**bar**_
foo**_bar_**
.
<p>foo<em><strong>bar</strong></em></p>
<p>foo_<strong>bar</strong>_</p>
<p>foo**<em>bar</em>**</p>
.

Loading…
Cancel
Save