nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Nitrpg work
[nit.git]
/
lib
/
markdown
/
test_markdown.nit
diff --git
a/lib/markdown/test_markdown.nit
b/lib/markdown/test_markdown.nit
index
a8d3b9f
..
e552883
100644
(file)
--- a/
lib/markdown/test_markdown.nit
+++ b/
lib/markdown/test_markdown.nit
@@
-1013,6
+1013,12
@@
break</a> with a line-ending space.</p>
assert exp == res
end
assert exp == res
end
+ fun test_escape_bad_html do
+ var test = "-1 if < , +1 if > and 0 otherwise"
+ var exp = "<p>-1 if < , +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 = """
fun test_daring_encoding do
var test = """
@@
-2522,8
+2528,6
@@
class TestLine
var subject: MDLine
var subject: MDLine
- init do end
-
fun test_is_empty do
subject = new MDLine("")
assert subject.is_empty
fun test_is_empty do
subject = new MDLine("")
assert subject.is_empty