diff options
author | James Moger <james.moger@gitblit.com> | 2011-08-06 17:22:53 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-08-06 17:22:53 -0400 |
commit | cbf59502795be12dc0015e05523076a9561df807 (patch) | |
tree | 053c6627137cf36ca9b4b673bdbd095172ea45aa /tests | |
parent | 233eb002b2b8884c66ed70f787832e35c7bb37ab (diff) | |
download | gitblit-cbf59502795be12dc0015e05523076a9561df807.tar.gz gitblit-cbf59502795be12dc0015e05523076a9561df807.zip |
Updated to Markdown Papers 1.1.1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/com/gitblit/tests/MarkdownUtilsTest.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/com/gitblit/tests/MarkdownUtilsTest.java b/tests/com/gitblit/tests/MarkdownUtilsTest.java index 2034bda3..8a70625b 100644 --- a/tests/com/gitblit/tests/MarkdownUtilsTest.java +++ b/tests/com/gitblit/tests/MarkdownUtilsTest.java @@ -24,8 +24,12 @@ import com.gitblit.utils.MarkdownUtils; public class MarkdownUtilsTest extends TestCase {
public void testMarkdown() throws Exception {
- assertTrue(MarkdownUtils.transformMarkdown("# H1").equals("<h1> H1</h1>"));
- assertTrue(MarkdownUtils.transformMarkdown("## H2").equals("<h2> H2</h2>"));
+ assertEquals("<h1> H1</h1>", MarkdownUtils.transformMarkdown("# H1"));
+ assertEquals("<h2> H2</h2>", MarkdownUtils.transformMarkdown("## H2"));
+ assertEquals("<p><strong>THIS</strong> is a test</p>", MarkdownUtils.transformMarkdown("**THIS** is a test"));
+ assertEquals("<p>** THIS ** is a test</p>", MarkdownUtils.transformMarkdown("** THIS ** is a test"));
+ assertEquals("<p>**THIS ** is a test</p>", MarkdownUtils.transformMarkdown("**THIS ** is a test"));
+ assertEquals("<p>** THIS** is a test</p>", MarkdownUtils.transformMarkdown("** THIS** is a test"));
try {
MarkdownUtils.transformMarkdown((String) null);
assertTrue(false);
|