diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-01-10 22:25:11 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-01-10 22:25:11 +0300 |
commit | e29f1c966056b0f7ee31dd9bd7d55f9e526fa7fe (patch) | |
tree | 8da51e8afaf9b03bbd8d0d643ff8fdd98f0f6984 /core/testdata/format | |
parent | 43d699c14f2859135b15efb8a5a92af4d9da2b12 (diff) | |
download | dokka-e29f1c966056b0f7ee31dd9bd7d55f9e526fa7fe.tar.gz dokka-e29f1c966056b0f7ee31dd9bd7d55f9e526fa7fe.tar.bz2 dokka-e29f1c966056b0f7ee31dd9bd7d55f9e526fa7fe.zip |
Convert assertFails in kws samples without message properly
Diffstat (limited to 'core/testdata/format')
-rw-r--r-- | core/testdata/format/website-html/sampleWithAsserts.html | 2 | ||||
-rw-r--r-- | core/testdata/format/website-html/sampleWithAsserts.kt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/testdata/format/website-html/sampleWithAsserts.html b/core/testdata/format/website-html/sampleWithAsserts.html index 11a3a626..cbb67dbf 100644 --- a/core/testdata/format/website-html/sampleWithAsserts.html +++ b/core/testdata/format/website-html/sampleWithAsserts.html @@ -14,6 +14,8 @@ println("a() == b() is ${a() == b()}") // true // readSomeFile(File("some.txt")) // reading file now will fail // readSomeFile(File("some.txt")) // will fail with FileNotFoundException +// readSomeFile(File("some.txt")) // will fail + fun indented() { // A neq B println("a() != b() is ${a() != b()}") // false diff --git a/core/testdata/format/website-html/sampleWithAsserts.kt b/core/testdata/format/website-html/sampleWithAsserts.kt index b3bce11d..bb5848e6 100644 --- a/core/testdata/format/website-html/sampleWithAsserts.kt +++ b/core/testdata/format/website-html/sampleWithAsserts.kt @@ -26,6 +26,8 @@ fun sample() { assertFails("reading file now") { readSomeFile(File("some.txt")) } assertFailsWith<FileNotFoundException> { readSomeFile(File("some.txt")) } + assertFails { readSomeFile(File("some.txt")) } + fun indented() { assertFalse(a() != b(), "A neq B") } |