mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
Turn some test outputs into actual tests
This commit is contained in:
@@ -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>!"
|
||||
|
||||
Reference in New Issue
Block a user