diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/tripleBackticks.html | 18 | ||||
-rw-r--r-- | test/data/format/tripleBackticks.kt | 7 | ||||
-rw-r--r-- | test/src/format/HtmlFormatTest.kt | 6 |
3 files changed, 31 insertions, 0 deletions
diff --git a/test/data/format/tripleBackticks.html b/test/data/format/tripleBackticks.html new file mode 100644 index 00000000..ad4251a9 --- /dev/null +++ b/test/data/format/tripleBackticks.html @@ -0,0 +1,18 @@ +<HTML> +<HEAD> +<title>test / f</title> +</HEAD> +<BODY> +<a href="out.html">test</a> / <a href="out.html"></a> / <a href="out.html">f</a><br/> +<br/> +<h1>f</h1> +<pre><code><span class="keyword">fun </span><span class="identifier">f</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></pre><p>Description</p> +<br/> +<br/> +<h3>Description</h3> +<pre><code> +code sample +</code></pre><br/> +<br/> +</BODY> +</HTML> diff --git a/test/data/format/tripleBackticks.kt b/test/data/format/tripleBackticks.kt new file mode 100644 index 00000000..54dfa6d5 --- /dev/null +++ b/test/data/format/tripleBackticks.kt @@ -0,0 +1,7 @@ +/** + * Description + * ``` + * code sample + * ``` + */ +fun f() {} diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt index e180a86c..7dfa80be 100644 --- a/test/src/format/HtmlFormatTest.kt +++ b/test/src/format/HtmlFormatTest.kt @@ -57,4 +57,10 @@ public class HtmlFormatTest { htmlService.appendNodes(tempLocation, output, model.members.single().members) } } + + Test fun tripleBackticks() { + verifyOutput("test/data/format/tripleBackticks.kt", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members.single().members) + } + } } |