diff options
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> |
