aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format/website/sampleWithAsserts.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-14 18:08:17 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-14 18:08:17 +0300
commit47790d166100dc50d797fc0312b9b3fe0e7e9d7f (patch)
tree15750d4e238692305b089b4a9969b005868aaaf6 /core/testdata/format/website/sampleWithAsserts.kt
parentdc99d1fd5c066ac6083f09e23e52cf6c592768e4 (diff)
downloaddokka-47790d166100dc50d797fc0312b9b3fe0e7e9d7f.tar.gz
dokka-47790d166100dc50d797fc0312b9b3fe0e7e9d7f.tar.bz2
dokka-47790d166100dc50d797fc0312b9b3fe0e7e9d7f.zip
Replacing assertPrints, assertTrue to println for kotlin-website samples, Added SampleProcessingService to FormatDescriptor
Diffstat (limited to 'core/testdata/format/website/sampleWithAsserts.kt')
-rw-r--r--core/testdata/format/website/sampleWithAsserts.kt15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/testdata/format/website/sampleWithAsserts.kt b/core/testdata/format/website/sampleWithAsserts.kt
new file mode 100644
index 00000000..bb9732d5
--- /dev/null
+++ b/core/testdata/format/website/sampleWithAsserts.kt
@@ -0,0 +1,15 @@
+/**
+ * @sample sample
+ */
+fun a(): String {
+ return "Hello, Work"
+}
+
+fun b(): String {
+ return "Hello, Rest"
+}
+
+fun sample() {
+ assertPrints(a(), "Hello, Work")
+ assertTrue(a() == b())
+} \ No newline at end of file