Turn some test outputs into actual tests
This commit is contained in:
parent
c433ae1aaa
commit
22db40e5e4
13 changed files with 84 additions and 52 deletions
|
|
@ -1250,6 +1250,7 @@ proc rstToHtml*(s: string, options: TRstParseOptions,
|
|||
renderRstToOut(d, rst, result)
|
||||
|
||||
|
||||
when not defined(testing) and isMainModule:
|
||||
echo rstToHtml("*Hello* **world**!", {},
|
||||
newStringTable(modeStyleInsensitive))
|
||||
when isMainModule:
|
||||
assert rstToHtml("*Hello* **world**!", {},
|
||||
newStringTable(modeStyleInsensitive)) ==
|
||||
"<em>Hello</em> <strong>world</strong>!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue