aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format/website-samples/sampleWithAsserts.kt
blob: bb9732d5c4a4ec0d9abe32374385ab61df57bd6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * @sample sample
 */
fun a(): String {
    return "Hello, Work"
}

fun b(): String {
    return "Hello, Rest"
}

fun sample() {
    assertPrints(a(), "Hello, Work")
    assertTrue(a() == b())
}