Add markdown tests

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1788 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-09-03 09:22:07 +00:00
parent 91cc086b67
commit cb363f2b02

View File

@@ -294,4 +294,18 @@ base</code></pre>");
* line2
end"));
}
public function testUnderscore ()
{
$this->expectOutputString("<p><em>file1.php</em> or <em>file2.php</em></p>");
$md = new markdown ();
printf ($md->html ("_file1.php_ or _file2.php_"));
}
public function testCarriageReturn1 ()
{
$this->expectOutputString("<p>line1 line2</p>");
$md = new markdown ();
printf ($md->html ("line1\nline2\n"));
}
}