move rest of tests to testament (#16140)

* move rest of tests to testament
* Update tests/stdlib/tsums.nim
This commit is contained in:
flywind 2020-11-28 03:47:49 +08:00 • committed by GitHub
commit bc1db0d6f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 228 additions and 233 deletions

View file

@ -6,7 +6,7 @@ outputsub: ""
import ../../lib/packages/docutils/rstgen
import ../../lib/packages/docutils/rst
import unittest
import unittest, strtabs
suite "YAML syntax highlighting":
test "Basics":
@ -177,3 +177,8 @@ not in table"""
let output2 = rstToHtml(input2, {roSupportMarkdown}, defaultConfig())
assert output2 == """<table border="1" class="docutils"><tr><th>A1 header</th><th>A2</th></tr>
</table>"""
assert rstToHtml("*Hello* **world**!", {},
newStringTable(modeStyleInsensitive)) ==
"<em>Hello</em> <strong>world</strong>!"