enable style:usages for stdlib tests [backport: 1.6] (#19715)
* enable style:usages for stdlib tests * freeAddrInfo * more tests * importc * bufSize * fix more * => parseSql and renderSql
This commit is contained in:
parent
26bcf18f91
commit
98cebad7de
42 changed files with 149 additions and 146 deletions
|
|
@ -861,7 +861,7 @@ suite "RST include directive":
|
|||
test "Include whole":
|
||||
"other.rst".writeFile("**test1**")
|
||||
let input = ".. include:: other.rst"
|
||||
doAssert "<strong>test1</strong>" == rstTohtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
doAssert "<strong>test1</strong>" == rstToHtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
test "Include starting from":
|
||||
|
|
@ -875,7 +875,7 @@ OtherStart
|
|||
.. include:: other.rst
|
||||
:start-after: OtherStart
|
||||
"""
|
||||
check "<em>Visible</em>" == rstTohtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
check "<em>Visible</em>" == rstToHtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
test "Include everything before":
|
||||
|
|
@ -889,7 +889,7 @@ And this should **NOT** be visible in `docs.html`
|
|||
.. include:: other.rst
|
||||
:end-before: OtherEnd
|
||||
"""
|
||||
doAssert "<em>Visible</em>" == rstTohtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
doAssert "<em>Visible</em>" == rstToHtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
|
||||
|
|
@ -907,7 +907,7 @@ And this should **NOT** be visible in `docs.html`
|
|||
:start-after: OtherStart
|
||||
:end-before: OtherEnd
|
||||
"""
|
||||
check "<em>Visible</em>" == rstTohtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
check "<em>Visible</em>" == rstToHtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
|
||||
|
|
@ -927,7 +927,7 @@ And this should **NOT** be visible in `docs.html`
|
|||
:start-after: OtherStart
|
||||
:end-before: OtherEnd
|
||||
"""
|
||||
doAssert "<em>Visible</em>" == rstTohtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
doAssert "<em>Visible</em>" == rstToHtml(input, {roSandboxDisabled}, defaultConfig())
|
||||
removeFile("other.rst")
|
||||
|
||||
suite "RST escaping":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue