code: remove `protected` from top-level methods (now in sys)
[nit.git] / lib / markdown / test_markdown.nit
index a8d3b9f..e552883 100644 (file)
@@ -1013,6 +1013,12 @@ break</a> with a line-ending space.</p>
                assert exp == res
        end
 
+       fun test_escape_bad_html do
+                       var test = "-1 if < , +1 if > and 0 otherwise"
+                       var exp = "<p>-1 if &lt; , +1 if > and 0 otherwise</p>\n"
+               var res = test.md_to_html.write_to_string
+               assert exp == res
+       end
 
        fun test_daring_encoding do
                var test = """
@@ -2522,8 +2528,6 @@ class TestLine
 
        var subject: MDLine
 
-       init do end
-
        fun test_is_empty do
                subject = new MDLine("")
                assert subject.is_empty