use doAssert in tests (#16486)
This commit is contained in:
parent
f9a15dbae9
commit
6d442a40a6
78 changed files with 1056 additions and 1056 deletions
|
|
@ -16,7 +16,7 @@ suite "RST include directive":
|
|||
test "Include whole":
|
||||
"other.rst".writeFile("**test1**")
|
||||
let input = ".. include:: other.rst"
|
||||
assert "<strong>test1</strong>" == rstTohtml(input, {}, defaultConfig())
|
||||
doAssert "<strong>test1</strong>" == rstTohtml(input, {}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
test "Include starting from":
|
||||
|
|
@ -30,7 +30,7 @@ OtherStart
|
|||
.. include:: other.rst
|
||||
:start-after: OtherStart
|
||||
"""
|
||||
assert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
doAssert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
test "Include everything before":
|
||||
|
|
@ -44,7 +44,7 @@ And this should **NOT** be visible in `docs.html`
|
|||
.. include:: other.rst
|
||||
:end-before: OtherEnd
|
||||
"""
|
||||
assert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
doAssert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ And this should **NOT** be visible in `docs.html`
|
|||
:start-after: OtherStart
|
||||
:end-before: OtherEnd
|
||||
"""
|
||||
assert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
doAssert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
|
||||
|
|
@ -82,5 +82,5 @@ And this should **NOT** be visible in `docs.html`
|
|||
:start-after: OtherStart
|
||||
:end-before: OtherEnd
|
||||
"""
|
||||
assert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
doAssert "<em>Visible</em>" == rstTohtml(input, {}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue