From fd42f2e864330df5348fc77194a5f41479341f89 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 26 Dec 2013 21:55:33 +0200 Subject: [PATCH] improve tests --- tests/data/compound_emphasis.html | 2 ++ tests/data/compound_emphasis.md | 4 ++++ tests/data/fenced_code_block.html | 3 ++- tests/data/fenced_code_block.md | 6 +++++- tests/data/image_reference.html | 2 +- tests/data/image_reference.md | 2 +- tests/data/inline_link.html | 6 +++--- tests/data/inline_link.md | 6 +++--- tests/data/special_characters.html | 2 +- tests/data/special_characters.md | 2 +- tests/data/strikethrough.html | 4 ++-- tests/data/strikethrough.md | 4 ++-- tests/data/url_autolinking.html | 3 ++- tests/data/url_autolinking.md | 4 +++- 14 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 tests/data/compound_emphasis.html create mode 100644 tests/data/compound_emphasis.md diff --git a/tests/data/compound_emphasis.html b/tests/data/compound_emphasis.html new file mode 100644 index 0000000..178dd54 --- /dev/null +++ b/tests/data/compound_emphasis.html @@ -0,0 +1,2 @@ +

code code

+

codecodecode

\ No newline at end of file diff --git a/tests/data/compound_emphasis.md b/tests/data/compound_emphasis.md new file mode 100644 index 0000000..6fe07f2 --- /dev/null +++ b/tests/data/compound_emphasis.md @@ -0,0 +1,4 @@ +_`code`_ __`code`__ + +*`code`**`code`**`code`* + diff --git a/tests/data/fenced_code_block.html b/tests/data/fenced_code_block.html index be13453..8bdabba 100644 --- a/tests/data/fenced_code_block.html +++ b/tests/data/fenced_code_block.html @@ -2,4 +2,5 @@ $message = 'fenced code block'; echo $message; -
tilde
\ No newline at end of file +
tilde
+
echo 'language identifier';
\ No newline at end of file diff --git a/tests/data/fenced_code_block.md b/tests/data/fenced_code_block.md index 5672aea..cbed8eb 100644 --- a/tests/data/fenced_code_block.md +++ b/tests/data/fenced_code_block.md @@ -7,4 +7,8 @@ echo $message; ~~~ tilde -~~~ \ No newline at end of file +~~~ + +```php +echo 'language identifier'; +``` \ No newline at end of file diff --git a/tests/data/image_reference.html b/tests/data/image_reference.html index e882dfd..b3249cb 100644 --- a/tests/data/image_reference.html +++ b/tests/data/image_reference.html @@ -1 +1 @@ -

Markdown Logo

\ No newline at end of file +

Markdown Logo

\ No newline at end of file diff --git a/tests/data/image_reference.md b/tests/data/image_reference.md index b8db468..dcb1414 100644 --- a/tests/data/image_reference.md +++ b/tests/data/image_reference.md @@ -1,3 +1,3 @@ ![Markdown Logo][image] -[image]: /md.png \ No newline at end of file +[image]: /md.png diff --git a/tests/data/inline_link.html b/tests/data/inline_link.html index 020ac75..2b9e649 100644 --- a/tests/data/inline_link.html +++ b/tests/data/inline_link.html @@ -1,4 +1,4 @@ -

link

+

link and another link

link

-

link with title

-

MD Logo

\ No newline at end of file +

MD Logo

+

MD Logo and text

\ No newline at end of file diff --git a/tests/data/inline_link.md b/tests/data/inline_link.md index 041cd11..cd8e5a6 100644 --- a/tests/data/inline_link.md +++ b/tests/data/inline_link.md @@ -1,7 +1,7 @@ -[link](http://example.com) +[link](http://example.com) and [another link](/tests/) [`link`](http://example.com) -[link with title](http://example.com "Example") +[![MD Logo](http://parsedown.org/md.png)](http://example.com) -[![MD Logo](http://parsedown.org/md.png)](http://example.com) \ No newline at end of file +[![MD Logo](http://parsedown.org/md.png) and text](http://example.com) \ No newline at end of file diff --git a/tests/data/special_characters.html b/tests/data/special_characters.html index 7fd3fbb..7cebe8a 100644 --- a/tests/data/special_characters.html +++ b/tests/data/special_characters.html @@ -2,6 +2,6 @@

AT&T is another way to write it

this & that

4 < 5 and 6 > 5

-

http://example.com/autolink?a=1&b=2

+

http://example.com/autolink?a=1&b=2

inline link

reference link

\ No newline at end of file diff --git a/tests/data/special_characters.md b/tests/data/special_characters.md index 440c05e..d91adc5 100644 --- a/tests/data/special_characters.md +++ b/tests/data/special_characters.md @@ -6,7 +6,7 @@ this & that 4 < 5 and 6 > 5 - + [inline link](/script?a=1&b=2) diff --git a/tests/data/strikethrough.html b/tests/data/strikethrough.html index bdcdc41..2a9da98 100644 --- a/tests/data/strikethrough.html +++ b/tests/data/strikethrough.html @@ -1,3 +1,3 @@

strikethrough

-

in the middle of a sentence

-

in the middle of a word

\ No newline at end of file +

here's one followed by another one

+

~~ this ~~ is not one neither is ~this~

\ No newline at end of file diff --git a/tests/data/strikethrough.md b/tests/data/strikethrough.md index 6c7efaf..d169144 100644 --- a/tests/data/strikethrough.md +++ b/tests/data/strikethrough.md @@ -1,5 +1,5 @@ ~~strikethrough~~ -in the ~~middle~~ of a sentence +here's ~~one~~ followed by ~~another one~~ -in the middle of a w~~or~~d \ No newline at end of file +~~ this ~~ is not one neither is ~this~ \ No newline at end of file diff --git a/tests/data/url_autolinking.html b/tests/data/url_autolinking.html index 5f59097..9862cc4 100644 --- a/tests/data/url_autolinking.html +++ b/tests/data/url_autolinking.html @@ -1 +1,2 @@ -

Here's an autolink http://example.com.

\ No newline at end of file +

an autolink http://example.com

+

inside of brackets [http://example.com], inside of braces {http://example.com}, inside of parentheses (http://example.com)

\ No newline at end of file diff --git a/tests/data/url_autolinking.md b/tests/data/url_autolinking.md index 7094a09..8cc442a 100644 --- a/tests/data/url_autolinking.md +++ b/tests/data/url_autolinking.md @@ -1 +1,3 @@ -Here's an autolink http://example.com. \ No newline at end of file +an autolink http://example.com + +inside of brackets [http://example.com], inside of braces {http://example.com}, inside of parentheses (http://example.com) \ No newline at end of file