aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/FunctionTest.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 00:28:14 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 00:28:14 +0400
commit2f4e56d77ac72c3f47cd2799094b1b987b0d9522 (patch)
tree3f56b086efcc52de26a4c59f3ec0bd4239cb2bf8 /test/src/model/FunctionTest.kt
parent1fc5f504c77e98f80c7f6921e26ca7c9463c8bf3 (diff)
downloaddokka-2f4e56d77ac72c3f47cd2799094b1b987b0d9522.tar.gz
dokka-2f4e56d77ac72c3f47cd2799094b1b987b0d9522.tar.bz2
dokka-2f4e56d77ac72c3f47cd2799094b1b987b0d9522.zip
Implement symbol resolution for function body context, class type parameters, add code that checks that all details are resolved.
Diffstat (limited to 'test/src/model/FunctionTest.kt')
-rw-r--r--test/src/model/FunctionTest.kt12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index 217e97f4..aa22ee0f 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -66,12 +66,13 @@ public class FunctionTest {
assertEquals(DocumentationNodeKind.Function, kind)
assertEquals("generic function", doc)
- with(details.single()) {
+ assertEquals(2, details.count())
+ with(details.elementAt(0)) {
assertEquals("T", name)
assertEquals(DocumentationNodeKind.TypeParameter, kind)
assertEquals("", doc)
with(details.single()) {
- assertEquals("CharSequence", name)
+ assertEquals("R", name)
assertEquals(DocumentationNodeKind.UpperBound, kind)
assertEquals("", doc)
assertTrue(details.none())
@@ -81,6 +82,13 @@ public class FunctionTest {
assertTrue(members.none())
assertTrue(links.none())
}
+ with(details.elementAt(1)) {
+ assertEquals("R", name)
+ assertEquals(DocumentationNodeKind.TypeParameter, kind)
+ assertEquals("", doc)
+ assertTrue(members.none())
+ assertTrue(links.none())
+ }
assertTrue(members.none())
assertTrue(links.none())