Commit 11cf2230 authored by Liang Ding's avatar Liang Ding

修复 Markdown 单元测试用例问题

parent 8bd3cb97
...@@ -29,7 +29,7 @@ import org.testng.Assert; ...@@ -29,7 +29,7 @@ import org.testng.Assert;
* {@link org.b3log.solo.util.Markdowns} test case. * {@link org.b3log.solo.util.Markdowns} test case.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.2, May 16, 2013 * @version 1.0.1.2, May 18, 2016
* @since 0.4.5 * @since 0.4.5
*/ */
public final class MarkdownsTestCase { public final class MarkdownsTestCase {
...@@ -44,7 +44,7 @@ public final class MarkdownsTestCase { ...@@ -44,7 +44,7 @@ public final class MarkdownsTestCase {
String markdownText = ""; String markdownText = "";
String html = Markdowns.toHTML(markdownText); String html = Markdowns.toHTML(markdownText);
Assert.assertNull(html); Assert.assertEquals(html, "");
markdownText = "# Solo Markdown Editor"; markdownText = "# Solo Markdown Editor";
html = Markdowns.toHTML(markdownText); html = Markdowns.toHTML(markdownText);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment