aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/FunctionTest.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-12-16 21:41:32 +0300
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-12-16 21:41:32 +0300
commitbd6cddd932c308519ce386197b93de145462bec2 (patch)
tree5cb04a2cd8f7dfd7e1c679f16977a51d5d966faa /test/src/model/FunctionTest.kt
parent9535260e7b9f1483fbbfcf0abf4c171311fd92b7 (diff)
downloaddokka-bd6cddd932c308519ce386197b93de145462bec2.tar.gz
dokka-bd6cddd932c308519ce386197b93de145462bec2.tar.bz2
dokka-bd6cddd932c308519ce386197b93de145462bec2.zip
Process short links.
Diffstat (limited to 'test/src/model/FunctionTest.kt')
-rw-r--r--test/src/model/FunctionTest.kt30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index c6ad93cc..2a4ad0a5 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -24,12 +24,10 @@ public class FunctionTest {
assertEquals("fn", name)
assertEquals(DocumentationNode.Kind.Function, kind)
assertEquals("Function with receiver", content.summary.toTestString())
- assertEquals("Unit", details.elementAt(0).name)
-
assertEquals(4, details.count())
+ assertEquals("internal", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
- assertEquals("internal", details.elementAt(2).name)
- with(details.elementAt(3)) {
+ with(details.elementAt(2)) {
assertEquals("<this>", name)
assertEquals(DocumentationNode.Kind.Receiver, kind)
assertEquals(Content.Empty, content)
@@ -37,6 +35,7 @@ public class FunctionTest {
assertTrue(members.none())
assertTrue(links.none())
}
+ assertEquals("Unit", details.elementAt(3).name)
assertTrue(members.none())
assertTrue(links.none())
}
@@ -51,10 +50,9 @@ public class FunctionTest {
assertEquals("generic function", content.summary.toTestString())
assertEquals(4, details.count())
- assertEquals("Unit", details.elementAt(0).name)
+ assertEquals("private", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
- assertEquals("private", details.elementAt(2).name)
- with(details.elementAt(3)) {
+ with(details.elementAt(2)) {
assertEquals("T", name)
assertEquals(DocumentationNode.Kind.TypeParameter, kind)
assertEquals(Content.Empty, content)
@@ -62,6 +60,7 @@ public class FunctionTest {
assertTrue(members.none())
assertTrue(links.none())
}
+ assertEquals("Unit", details.elementAt(3).name)
assertTrue(members.none())
assertTrue(links.none())
@@ -76,15 +75,16 @@ public class FunctionTest {
assertEquals("generic function", content.summary.toTestString())
assertEquals(5, details.count())
- assertEquals("Unit", details.elementAt(0).name)
+ assertEquals("public", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
- assertEquals("public", details.elementAt(2).name)
- with(details.elementAt(3)) {
+ with(details.elementAt(2)) {
assertEquals("T", name)
assertEquals(DocumentationNode.Kind.TypeParameter, kind)
assertEquals(Content.Empty, content)
with(details.single()) {
assertEquals("R", name)
+ assertEquals("R", name)
+ assertEquals("R", name)
assertEquals(DocumentationNode.Kind.UpperBound, kind)
assertEquals(Content.Empty, content)
assertTrue(details.none())
@@ -94,13 +94,14 @@ public class FunctionTest {
assertTrue(members.none())
assertTrue(links.none())
}
- with(details.elementAt(4)) {
+ with(details.elementAt(3)) {
assertEquals("R", name)
assertEquals(DocumentationNode.Kind.TypeParameter, kind)
assertEquals(Content.Empty, content)
assertTrue(members.none())
assertTrue(links.none())
}
+ assertEquals("Unit", details.elementAt(4).name)
assertTrue(members.none())
assertTrue(links.none())
@@ -118,10 +119,9 @@ public class FunctionTest {
Documentation""", content.description.toTestString())
assertEquals(4, details.count())
- assertEquals("Unit", details.elementAt(0).name)
+ assertEquals("internal", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
- assertEquals("internal", details.elementAt(2).name)
- with(details.elementAt(3)) {
+ with(details.elementAt(2)) {
assertEquals("x", name)
assertEquals(DocumentationNode.Kind.Parameter, kind)
assertEquals("parameter", content.summary.toTestString())
@@ -129,7 +129,7 @@ Documentation""", content.description.toTestString())
assertTrue(members.none())
assertTrue(links.none())
}
-
+ assertEquals("Unit", details.elementAt(3).name)
assertTrue(members.none())
assertTrue(links.none())
}