aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/TestAPI.kt2
-rw-r--r--test/src/model/FunctionTest.kt1
2 files changed, 2 insertions, 1 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index 65254bca..e5669569 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -28,7 +28,7 @@ public fun verifyModel(vararg files: String, verifier: (DocumentationModel) -> U
}
val result = environment.processFiles { context, file ->
- context.createDocumentation(file)
+ context.createSourceModel(file)
}.fold(DocumentationModel()) {(aggregate, item) -> aggregate.merge(item) }
verifier(result)
Disposer.dispose(environment)
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index 90b937de..528166e6 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -30,6 +30,7 @@ Documentation"""
with(details.single()) {
assertEquals("x", name)
assertEquals(DocumentationNodeKind.Parameter, kind)
+ assertEquals("parameter", doc)
assertTrue(details.none())
assertTrue(members.none())
assertTrue(links.none())