From 3f899ebbb9acd70b1e331bfa6bb196e664c17a91 Mon Sep 17 00:00:00 2001
From: Robert Sesek <rsesek@bluestatic.org>
Date: Sun, 1 Apr 2007 07:58:10 +0000
Subject: [PATCH] Fixing a few bugs with the Markdown unit test

---
 docs/UnitTest/MarkdownTest.php | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/docs/UnitTest/MarkdownTest.php b/docs/UnitTest/MarkdownTest.php
index feda39a..26bd968 100644
--- a/docs/UnitTest/MarkdownTest.php
+++ b/docs/UnitTest/MarkdownTest.php
@@ -55,16 +55,16 @@ class MarkdownTest extends UnitTestCase
 	
 	public function testAtxHeaders()
 	{
-		$this->assertEqual('<h1>Heading 1<h1>', BSMarkdown::Parse('# Heading 1'));
-		$this->assertEqual('<h2>Heading 2<h2>', BSMarkdown::Parse('## Heading 2'));
-		$this->assertEqual('<h3>Heading 3<h3>', BSMarkdown::Parse('### Heading 3'));
-		$this->assertEqual('<h4>Heading 4<h4>', BSMarkdown::Parse('#### Heading 4'));
-		$this->assertEqual('<h5>Heading 5<h5>', BSMarkdown::Parse('##### Heading 5'));
-		$this->assertEqual('<h6>Heading 6<h6>', BSMarkdown::Parse('###### Heading 6'));
+		$this->assertEqual('<h1>Heading 1</h1>', BSMarkdown::Parse('# Heading 1'));
+		$this->assertEqual('<h2>Heading 2</h2>', BSMarkdown::Parse('## Heading 2'));
+		$this->assertEqual('<h3>Heading 3</h3>', BSMarkdown::Parse('### Heading 3'));
+		$this->assertEqual('<h4>Heading 4</h4>', BSMarkdown::Parse('#### Heading 4'));
+		$this->assertEqual('<h5>Heading 5</h5>', BSMarkdown::Parse('##### Heading 5'));
+		$this->assertEqual('<h6>Heading 6</h6>', BSMarkdown::Parse('###### Heading 6'));
 		
 		$this->assertEqual('<h5>A simple heading</h5>', BSMarkdown::Parse('#####A simple heading'));
-		$this->assertEqual('<h2>Another heading</h2>', BSMarkdown::Parse('##      \tAnother heading'));
-		$this->assertEqual('<h3>The # of headings', BSMarkdown::Parse('### The # of headings'));
+		$this->assertEqual('<h2>Another heading</h2>', BSMarkdown::Parse("##      \tAnother heading"));
+		$this->assertEqual('<h3>The # of headings</h3>', BSMarkdown::Parse('### The # of headings'));
 		$this->assertEqual('<h4>End test</h4>', BSMarkdown::Parse('#### End test ##'));
 		$this->assertEqual('<h4>End test 2</h4>', BSMarkdown::Parse('#### End test 2####'));
 		$this->assertEqual('<h1># of #s in #</h1>', BSMarkdown::Parse('# # of #s in # ###'));
@@ -73,7 +73,7 @@ class MarkdownTest extends UnitTestCase
 	public function testBlockquote()
 	{
 		$this->assertEqual("<blockquote>\n\t<p>Example of blockquoted text</p>\n</blockquote>", BSMarkdown::Parse('> Example of blockquoted text'));
-		$this->assertEqual("<blockquote>\n\t<p>Another\n\texample\n\tof</p>\n\n<p>blockquoted text \<br />\there.</p>\n</blockquote>", BSMarkdown::Parse("> Another\nexample\nof\n\n>blockquoted text  \nhere."));
+		$this->assertEqual("<blockquote>\n\t<p>Another\n\texample\n\tof</p>\n\n<p>blockquoted text <br />\there.</p>\n</blockquote>", BSMarkdown::Parse("> Another\nexample\nof\n\n>blockquoted text  \nhere."));
 		$this->assertEqual("<blockquote>\n\t<h2>This is a header.</h2>\n\n\t<p>Welcome to AT&amp;T.</p>\n</blockquote>", BSMarkdown::Parse("> ## This is a header.\n>\n>\nWelcome to AT&T."));
 	}
 	
@@ -174,7 +174,7 @@ class MarkdownTest extends UnitTestCase
 	
 	public function testImages()
 	{
-		$this->assertEqual('<p><img src="/path/to/img.jpg" alt="Alt text" title="" /></p>', BSMarkdown::Parse('![Alt text](/path/to/img.jpg)'));
+		$this->assertEqual('<p><img src="/path/to/img.jpg" alt="Alt text" /></p>', BSMarkdown::Parse('![Alt text](/path/to/img.jpg)'));
 		$this->assertEqual('<p><img src="/path/to/img.jpg" alt="Alt text" title="Optional title" /></p>', BSMarkdown::Parse('![Alt text](/path/to/img.jpg "Optional title")'));
 		$this->assertEqual('<p><img src="/path/to/img.jpg" alt="Alt text" title="Optional title" /></p>', BSMarkdown::Parse('![Alt text](/path/to/img.jpg \'Optional title\')'));
 		
-- 
2.43.5