diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-03-29 18:33:46 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-03-29 20:01:39 +0300 |
commit | dd0e4af1a4a6c638ecdc0d29f9abb7b77641a136 (patch) | |
tree | 771c9c34f53fe9894c1006604ccba724b1041f2c /core/testdata/format/website-html/sampleWithAsserts.html | |
parent | 57e38932b414e7496678b3cc1f171cbf7c4d8fbb (diff) | |
download | dokka-dd0e4af1a4a6c638ecdc0d29f9abb7b77641a136.tar.gz dokka-dd0e4af1a4a6c638ecdc0d29f9abb7b77641a136.tar.bz2 dokka-dd0e4af1a4a6c638ecdc0d29f9abb7b77641a136.zip |
Implement assertion replacement templates for samples
Diffstat (limited to 'core/testdata/format/website-html/sampleWithAsserts.html')
-rw-r--r-- | core/testdata/format/website-html/sampleWithAsserts.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/testdata/format/website-html/sampleWithAsserts.html b/core/testdata/format/website-html/sampleWithAsserts.html index 012f91ab..7d014dbb 100644 --- a/core/testdata/format/website-html/sampleWithAsserts.html +++ b/core/testdata/format/website-html/sampleWithAsserts.html @@ -2,11 +2,14 @@ <h1>a</h1> <a name="$a()"></a> <div class="signature"><code><span class="keyword">fun </span><span class="identifier">a</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">String</span></code></div> -<div class="sample"><pre><code class="lang-kotlin"> +<div class="sample"><pre><code class="lang-kotlin">import java.io.FileNotFoundException +import java.io.File fun main(args: Array<String>) { //sampleStart println(a()) // Hello, Work println("a() == b() is ${a() == b()}") // true +// readSomeFile(File("some.txt")) // reading file now will fail +// readSomeFile(File("some.txt")) // will fail with FileNotFoundException //sampleEnd }</code></pre></div> |