aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/FunctionTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model/FunctionTest.kt')
-rw-r--r--test/src/model/FunctionTest.kt22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index 641b70a7..5499b21b 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -10,7 +10,7 @@ public class FunctionTest {
with(model.nodes.single().members.single()) {
assertEquals("fn", name)
assertEquals(DocumentationNodeKind.Function, kind)
- assertEquals("Function fn", doc)
+ assertEquals("Function fn", doc.summary)
assertEquals("Unit", details.single().name)
assertTrue(members.none())
assertTrue(links.none())
@@ -23,14 +23,14 @@ public class FunctionTest {
with(model.nodes.single().members.single()) {
assertEquals("fn", name)
assertEquals(DocumentationNodeKind.Function, kind)
- assertEquals("Function with receiver", doc)
+ assertEquals("Function with receiver", doc.summary)
assertEquals("Unit", details.elementAt(0).name)
assertEquals(2, details.count())
with(details.elementAt(1)) {
assertEquals("<this>", name)
assertEquals(DocumentationNodeKind.Receiver, kind)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertEquals("String", details.single().name)
assertTrue(members.none())
assertTrue(links.none())
@@ -46,14 +46,14 @@ public class FunctionTest {
with(model.nodes.single().members.single()) {
assertEquals("generic", name)
assertEquals(DocumentationNodeKind.Function, kind)
- assertEquals("generic function", doc)
+ assertEquals("generic function", doc.summary)
assertEquals(2, details.count())
assertEquals("Unit", details.elementAt(0).name)
with(details.elementAt(1)) {
assertEquals("T", name)
assertEquals(DocumentationNodeKind.TypeParameter, kind)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertTrue(members.none())
assertTrue(links.none())
@@ -69,18 +69,18 @@ public class FunctionTest {
with(model.nodes.single().members.single()) {
assertEquals("generic", name)
assertEquals(DocumentationNodeKind.Function, kind)
- assertEquals("generic function", doc)
+ assertEquals("generic function", doc.summary)
assertEquals(3, details.count())
assertEquals("Unit", details.elementAt(0).name)
with(details.elementAt(1)) {
assertEquals("T", name)
assertEquals(DocumentationNodeKind.TypeParameter, kind)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
with(details.single()) {
assertEquals("R", name)
assertEquals(DocumentationNodeKind.UpperBound, kind)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertTrue(members.none())
assertTrue(links.none())
@@ -91,7 +91,7 @@ public class FunctionTest {
with(details.elementAt(2)) {
assertEquals("R", name)
assertEquals(DocumentationNodeKind.TypeParameter, kind)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(members.none())
assertTrue(links.none())
}
@@ -110,14 +110,14 @@ public class FunctionTest {
assertEquals("""Multiline
Function
Documentation"""
- , doc)
+ , doc.summary)
assertEquals(2, details.count())
assertEquals("Unit", details.elementAt(0).name)
with(details.elementAt(1)) {
assertEquals("x", name)
assertEquals(DocumentationNodeKind.Parameter, kind)
- assertEquals("parameter", doc)
+ assertEquals("parameter", doc.summary)
assertEquals("Int", details.single().name)
assertTrue(members.none())
assertTrue(links.none())