From cb363f2b02c3b6dded51302ea0ef3f520e160cc0 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 3 Sep 2014 09:22:07 +0000 Subject: [PATCH] Add markdown tests git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1788 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/markdownTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Tests/markdownTest.php b/Tests/markdownTest.php index 8b46b7a..417e276 100644 --- a/Tests/markdownTest.php +++ b/Tests/markdownTest.php @@ -294,4 +294,18 @@ base"); * line2 end")); } + + public function testUnderscore () + { + $this->expectOutputString("

file1.php or file2.php

"); + $md = new markdown (); + printf ($md->html ("_file1.php_ or _file2.php_")); + } + + public function testCarriageReturn1 () + { + $this->expectOutputString("

line1 line2

"); + $md = new markdown (); + printf ($md->html ("line1\nline2\n")); + } }