diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-28 03:47:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-27 20:47:49 +0100 |
commit | bc1db0d6f163e4aba51f27b2a8cefd05476bd5e4 (patch) | |
tree | 48887ae1fd2a47553aa53f176adc14f7d1876ffc /tests/stdlib/trstgen.nim | |
parent | c9a10bb9e47c5227b32f49f5876e965cc2308541 (diff) | |
download | Nim-bc1db0d6f163e4aba51f27b2a8cefd05476bd5e4.tar.gz |
move rest of tests to testament (#16140)
* move rest of tests to testament * Update tests/stdlib/tsums.nim
Diffstat (limited to 'tests/stdlib/trstgen.nim')
-rw-r--r-- | tests/stdlib/trstgen.nim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/stdlib/trstgen.nim b/tests/stdlib/trstgen.nim index d35bc5821..946104e7c 100644 --- a/tests/stdlib/trstgen.nim +++ b/tests/stdlib/trstgen.nim @@ -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>!" |