aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:10:50 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:10:50 +0100
commit77effb4fa1e9263c30ef3594934e91d51df6bae3 (patch)
treec0d71358d504d881a6f53604cec182b9d48ef5f1 /test
parentc11ae71c3fdad03f1ba0624ca693b34782f1e6e9 (diff)
downloaddokka-77effb4fa1e9263c30ef3594934e91d51df6bae3.tar.gz
dokka-77effb4fa1e9263c30ef3594934e91d51df6bae3.tar.bz2
dokka-77effb4fa1e9263c30ef3594934e91d51df6bae3.zip
don't lose tag value where it's actually part of the description
Diffstat (limited to 'test')
-rw-r--r--test/data/java/member.java1
-rw-r--r--test/src/model/JavaTest.kt8
2 files changed, 7 insertions, 2 deletions
diff --git a/test/data/java/member.java b/test/data/java/member.java
index cf978444..a417ff7e 100644
--- a/test/data/java/member.java
+++ b/test/data/java/member.java
@@ -5,6 +5,7 @@ class Test {
* Summary for Function
* @param name is String parameter
* @param value is int parameter
+ * @author yole
*/
public void fn(String name, int value) {
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index 2f67d7e8..fe4fd322 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -13,7 +13,7 @@ public class JavaTest {
assertEquals("fn", name)
assertEquals(DocumentationNode.Kind.Function, kind)
assertEquals("Summary for Function", content.summary.toTestString())
- assertEquals(2, content.sections.size())
+ assertEquals(3, content.sections.size())
with(content.sections[0]) {
assertEquals("Parameters", tag)
assertEquals("name", subjectName)
@@ -22,7 +22,11 @@ public class JavaTest {
with(content.sections[1]) {
assertEquals("Parameters", tag)
assertEquals("value", subjectName)
- assertEquals("is int parameter", toTestString())
+ assertEquals("is int parameter ", toTestString())
+ }
+ with(content.sections[2]) {
+ assertEquals("Author", tag)
+ assertEquals("yole", toTestString())
}
assertEquals("Unit", detail(DocumentationNode.Kind.Type).name)
assertTrue(members.none())