aboutsummaryrefslogtreecommitdiff
path: root/test/src/TopLevelFunctionTest.kt
blob: a51b7bdde0189e7c5222b2fe1502b5db739efcdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.jetbrains.dokka.tests

import org.junit.Test
import kotlin.test.*
import com.jetbrains.dokka.*


public class TopLevelFunctionTest {
    Test fun function() {
        verifyFiles("test/data/function.kt") { model ->
            val item = model.nodes.single()
            assertEquals(DocumentationNodeKind.Function, item.kind)
            assertEquals("fn", item.name)
            assertEquals("doc", item.doc)
            assertTrue(item.details.none())
            assertTrue(item.members.none())
            assertTrue(item.links.none())
        }
    }
}