aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
authorKrystianUjma <kujma@virtuslab.com>2019-01-18 15:36:25 +0100
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2019-02-25 18:29:13 +0300
commit5b451ab6abf60e15c8044daebc90c3a46c21c4fb (patch)
tree236746dafa9ad77a82db28db2c34bc4a0502ccae /core/src/test/kotlin
parent46af103c8dd43839e898368dbda744fa522e9789 (diff)
downloaddokka-5b451ab6abf60e15c8044daebc90c3a46c21c4fb.tar.gz
dokka-5b451ab6abf60e15c8044daebc90c3a46c21c4fb.tar.bz2
dokka-5b451ab6abf60e15c8044daebc90c3a46c21c4fb.zip
Fix java doc primary constructors have duplicated parameters
#341 Fixed
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/javadoc/JavadocTest.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt
index b18dacca..9ca668d8 100644
--- a/core/src/test/kotlin/javadoc/JavadocTest.kt
+++ b/core/src/test/kotlin/javadoc/JavadocTest.kt
@@ -223,6 +223,16 @@ class JavadocTest {
}
}
+ @Test
+ fun shouldNotHaveDuplicatedConstructorParameters() {
+ verifyJavadoc("testdata/javadoc/constructorParameters.kt") { doc ->
+ val classDoc = doc.classNamed("bar.Banana")!!
+ val paramTags = classDoc.constructors()[0].paramTags()
+
+ assertEquals(3, paramTags.size)
+ }
+ }
+
private fun verifyJavadoc(name: String,
withJdk: Boolean = false,
withKotlinRuntime: Boolean = false,