Merge branch 'master' of gitlab.com:gambas/gambas

This commit is contained in:
gambas 2020-06-12 22:13:27 +02:00
commit 9c2f725e01
2 changed files with 13 additions and 13 deletions

View file

@ -88,7 +88,7 @@ Public Sub TestHeadlineThree()
md = "#dingdong" md = "#dingdong"
Try got = Markdown.ToHTML(md) Try got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Error("Markdown headline error") Assert.Error("Markdown headline error")
'Assert.Note("I got:" & gb.lf & got) 'Assert.Note("I got:" & gb.lf & got)
@ -112,7 +112,7 @@ Public Sub TestHlAndLineAndParagraph()
md = "# headline" & gb.lf & "---" & gb.lf & "blub" md = "# headline" & gb.lf & "---" & gb.lf & "blub"
expect = "<h1>headline</h1>" & gb.lf & "<hr>" & gb.lf & "<p>blub</p>" expect = "<h1>headline</h1>" & gb.lf & "<hr>" & gb.lf & "<p>blub</p>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown headline and paragraph") Assert.Equals(got, expect, "Markdown headline and paragraph")
' Assert.Note("I got:" & gb.lf & got) ' Assert.Note("I got:" & gb.lf & got)
@ -130,7 +130,7 @@ Public Sub TestHtmlTagIntegrity()
"<img src='test' blah='test' />" "<img src='test' blah='test' />"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown TestHtmlTagIntegrity") Assert.Equals(got, expect, "Markdown TestHtmlTagIntegrity")
'Assert.Note("I got:" & gb.lf & got) 'Assert.Note("I got:" & gb.lf & got)
@ -153,7 +153,7 @@ Public Sub TestHtmlTagIntegrityTwo()
"</small></div>" "</small></div>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown headline and paragraph") Assert.Equals(got, expect, "Markdown headline and paragraph")
'Assert.Note("I got:" & gb.lf & got) 'Assert.Note("I got:" & gb.lf & got)
@ -180,7 +180,7 @@ Public Sub TestUL()
"</ul>" "</ul>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown UL") Assert.Equals(got, expect, "Markdown UL")
' Assert.Note("I got:" & gb.lf & got) ' Assert.Note("I got:" & gb.lf & got)
@ -207,7 +207,7 @@ Public Sub TestOL()
"</ol>" "</ol>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown OL") Assert.Equals(got, expect, "Markdown OL")
End End
@ -233,7 +233,7 @@ Public Sub TestOLWithImage()
"</ol>" "</ol>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown OL with image") Assert.Equals(got, expect, "Markdown OL with image")
' Assert.Note("I expected:" & gb.lf & expect) ' Assert.Note("I expected:" & gb.lf & expect)
'Assert.Note("I got:" & gb.lf & got) 'Assert.Note("I got:" & gb.lf & got)
@ -249,7 +249,7 @@ Public Sub TestHtmlTags()
expect = "<img src='test' title='test' />" expect = "<img src='test' title='test' />"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown image") Assert.Equals(got, expect, "Markdown image")
' Assert.Note("I expected:" & gb.lf & expect) ' Assert.Note("I expected:" & gb.lf & expect)
@ -300,7 +300,7 @@ Public Sub TestTable()
"</table>" "</table>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown preserve table") Assert.Equals(got, expect, "Markdown preserve table")
'Assert.Note(got) 'Assert.Note(got)
@ -349,7 +349,7 @@ Public Sub TestParInTable()
"</table>" "</table>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown preserve p in table") Assert.Equals(got, expect, "Markdown preserve p in table")
'Assert.Note(got) 'Assert.Note(got)
@ -376,7 +376,7 @@ Public Sub TestPreserverUL()
"</ul>" "</ul>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown preserve ul") Assert.Equals(got, expect, "Markdown preserve ul")
'Assert.Note(got) 'Assert.Note(got)
@ -403,7 +403,7 @@ Public Sub TestPreserverOL()
"</ol>" "</ol>"
got = Markdown.ToHTML(md) got = Markdown.ToHTML(md)
Assert.Todo() Test.Todo()
Assert.Equals(got, expect, "Markdown preserve ol") Assert.Equals(got, expect, "Markdown preserve ol")
'Assert.Note(got) 'Assert.Note(got)

View file

@ -1,6 +1,6 @@
[TestSuites] [TestSuites]
Count=1 Count=1
TestWith=1 TestWith=0
Default="TMarkdown.TestHeadline;TestHeadlineThree;TestHlAndLineAndParagraph;TestHlAndParagraph;TestHtmlTagIntegrity;TestHtmlTagIntegrityTwo;TestHtmlTags;TestOL;TestOLWithImage;TestParInTable;TestParagraph;TestParagraphThree;TestParagraphTwo;TestPreserverOL;TestPreserverUL;TestStrong;TestTable;TestUL" Default="TMarkdown.TestHeadline;TestHeadlineThree;TestHlAndLineAndParagraph;TestHlAndParagraph;TestHtmlTagIntegrity;TestHtmlTagIntegrityTwo;TestHtmlTags;TestOL;TestOLWithImage;TestParInTable;TestParagraph;TestParagraphThree;TestParagraphTwo;TestPreserverOL;TestPreserverUL;TestStrong;TestTable;TestUL"
[TestSuites/1] [TestSuites/1]