From 3f899ebbb9acd70b1e331bfa6bb196e664c17a91 Mon Sep 17 00:00:00 2001 From: Robert Sesek 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('

Heading 1

', BSMarkdown::Parse('# Heading 1')); - $this->assertEqual('

Heading 2

', BSMarkdown::Parse('## Heading 2')); - $this->assertEqual('

Heading 3

', BSMarkdown::Parse('### Heading 3')); - $this->assertEqual('

Heading 4

', BSMarkdown::Parse('#### Heading 4')); - $this->assertEqual('

Heading 5
', BSMarkdown::Parse('##### Heading 5')); - $this->assertEqual('
Heading 6
', BSMarkdown::Parse('###### Heading 6')); + $this->assertEqual('

Heading 1

', BSMarkdown::Parse('# Heading 1')); + $this->assertEqual('

Heading 2

', BSMarkdown::Parse('## Heading 2')); + $this->assertEqual('

Heading 3

', BSMarkdown::Parse('### Heading 3')); + $this->assertEqual('

Heading 4

', BSMarkdown::Parse('#### Heading 4')); + $this->assertEqual('
Heading 5
', BSMarkdown::Parse('##### Heading 5')); + $this->assertEqual('
Heading 6
', BSMarkdown::Parse('###### Heading 6')); $this->assertEqual('
A simple heading
', BSMarkdown::Parse('#####A simple heading')); - $this->assertEqual('

Another heading

', BSMarkdown::Parse('## \tAnother heading')); - $this->assertEqual('

The # of headings', BSMarkdown::Parse('### The # of headings')); + $this->assertEqual('

Another heading

', BSMarkdown::Parse("## \tAnother heading")); + $this->assertEqual('

The # of headings

', BSMarkdown::Parse('### The # of headings')); $this->assertEqual('

End test

', BSMarkdown::Parse('#### End test ##')); $this->assertEqual('

End test 2

', BSMarkdown::Parse('#### End test 2####')); $this->assertEqual('

# of #s in #

', BSMarkdown::Parse('# # of #s in # ###')); @@ -73,7 +73,7 @@ class MarkdownTest extends UnitTestCase public function testBlockquote() { $this->assertEqual("
\n\t

Example of blockquoted text

\n
", BSMarkdown::Parse('> Example of blockquoted text')); - $this->assertEqual("
\n\t

Another\n\texample\n\tof

\n\n

blockquoted text \
\there.

\n
", BSMarkdown::Parse("> Another\nexample\nof\n\n>blockquoted text \nhere.")); + $this->assertEqual("
\n\t

Another\n\texample\n\tof

\n\n

blockquoted text
\there.

\n
", BSMarkdown::Parse("> Another\nexample\nof\n\n>blockquoted text \nhere.")); $this->assertEqual("
\n\t

This is a header.

\n\n\t

Welcome to AT&T.

\n
", 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('

Alt text

', BSMarkdown::Parse('![Alt text](/path/to/img.jpg)')); + $this->assertEqual('

Alt text

', BSMarkdown::Parse('![Alt text](/path/to/img.jpg)')); $this->assertEqual('

Alt text

', BSMarkdown::Parse('![Alt text](/path/to/img.jpg "Optional title")')); $this->assertEqual('

Alt text

', BSMarkdown::Parse('![Alt text](/path/to/img.jpg \'Optional title\')')); -- 2.43.5