Skip to content

Commit

Permalink
Merge pull request #114 from IUAM/issue113-void-element-tests
Browse files Browse the repository at this point in the history
Added tests for spaces in void elements (#113)
  • Loading branch information
colinodell committed Nov 29, 2016
2 parents c5b05d5 + 7d6f28c commit 20d2e21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/HtmlConverterTest.php
Expand Up @@ -35,7 +35,9 @@ public function test_line_breaks()
$this->html_gives_markdown("test\nanother line", 'test another line');
$this->html_gives_markdown("<p>test\nanother line</p>", 'test another line');
$this->html_gives_markdown('<p>test<br>another line</p>', "test \nanother line");
$this->html_gives_markdown('<p>test<br/>another line</p>', "test \nanother line");
$this->html_gives_markdown('<p>test<br />another line</p>', "test \nanother line");
$this->html_gives_markdown('<p>test<br />another line</p>', "test \nanother line");
}

public function test_headers()
Expand Down Expand Up @@ -101,6 +103,9 @@ public function test_anchor()
public function test_horizontal_rule()
{
$this->html_gives_markdown('<hr>', '- - - - - -');
$this->html_gives_markdown('<hr/>', '- - - - - -');
$this->html_gives_markdown('<hr />', '- - - - - -');
$this->html_gives_markdown('<hr />', '- - - - - -');
}

public function test_lists()
Expand Down

0 comments on commit 20d2e21

Please sign in to comment.