aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/JavaTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model/JavaTest.kt')
-rw-r--r--test/src/model/JavaTest.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index fcfae21a..2f67d7e8 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -13,6 +13,17 @@ public class JavaTest {
assertEquals("fn", name)
assertEquals(DocumentationNode.Kind.Function, kind)
assertEquals("Summary for Function", content.summary.toTestString())
+ assertEquals(2, content.sections.size())
+ with(content.sections[0]) {
+ assertEquals("Parameters", tag)
+ assertEquals("name", subjectName)
+ assertEquals("is String parameter ", toTestString())
+ }
+ with(content.sections[1]) {
+ assertEquals("Parameters", tag)
+ assertEquals("value", subjectName)
+ assertEquals("is int parameter", toTestString())
+ }
assertEquals("Unit", detail(DocumentationNode.Kind.Type).name)
assertTrue(members.none())
assertTrue(links.none())