aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format/website/sampleWithAsserts.kt
diff options
context:
space:
mode:
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