aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-01-10 22:25:11 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-01-10 22:25:11 +0300
commite29f1c966056b0f7ee31dd9bd7d55f9e526fa7fe (patch)
tree8da51e8afaf9b03bbd8d0d643ff8fdd98f0f6984 /core/testdata/format
parent43d699c14f2859135b15efb8a5a92af4d9da2b12 (diff)
downloaddokka-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.html2
-rw-r--r--core/testdata/format/website-html/sampleWithAsserts.kt2
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")
}