aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-04-28 12:29:16 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-04-28 12:29:16 +0200
commit586748b30a21012774266dac3c8f2fa6fe3ab2b8 (patch)
treed508293c8fad76a8c1d18d726559d820b4f02ca8 /core
parente33ea05d10a35adfe6835dce291080d9843e6b71 (diff)
downloaddokka-586748b30a21012774266dac3c8f2fa6fe3ab2b8.tar.gz
dokka-586748b30a21012774266dac3c8f2fa6fe3ab2b8.tar.bz2
dokka-586748b30a21012774266dac3c8f2fa6fe3ab2b8.zip
give some descriptions to type parameters to test rendering better
Diffstat (limited to 'core')
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt8
-rw-r--r--core/testdata/format/typeParameterBounds.kt1
-rw-r--r--core/testdata/format/typeParameterBounds.md4
-rw-r--r--core/testdata/format/typeParameterVariance.kt3
-rw-r--r--core/testdata/format/typeParameterVariance.md4
5 files changed, 14 insertions, 6 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index 8fe45106..ad1932b1 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -107,15 +107,11 @@ class MarkdownFormatTest {
}
@Test fun typeParameterBounds() {
- verifyOutput("testdata/format/typeParameterBounds.kt", ".md") { model, output ->
- markdownService.appendNodes(tempLocation, output, model.members.single().members)
- }
+ verifyMarkdownNode("typeParameterBounds")
}
@Test fun typeParameterVariance() {
- verifyOutput("testdata/format/typeParameterVariance.kt", ".md") { model, output ->
- markdownService.appendNodes(tempLocation, output, model.members.single().members)
- }
+ verifyMarkdownNode("typeParameterVariance")
}
@Test fun typeProjectionVariance() {
diff --git a/core/testdata/format/typeParameterBounds.kt b/core/testdata/format/typeParameterBounds.kt
index 5f22f8c5..8604e3b9 100644
--- a/core/testdata/format/typeParameterBounds.kt
+++ b/core/testdata/format/typeParameterBounds.kt
@@ -1,6 +1,7 @@
/**
* generic function
+ * @param T the first type parameter
*/
public fun <T : R, R> generic() {
} \ No newline at end of file
diff --git a/core/testdata/format/typeParameterBounds.md b/core/testdata/format/typeParameterBounds.md
index fe597878..e2551580 100644
--- a/core/testdata/format/typeParameterBounds.md
+++ b/core/testdata/format/typeParameterBounds.md
@@ -8,4 +8,8 @@
generic function
+### Parameters
+
+`T` - the first type parameter
+
diff --git a/core/testdata/format/typeParameterVariance.kt b/core/testdata/format/typeParameterVariance.kt
index 28b29f4b..d45e7eb3 100644
--- a/core/testdata/format/typeParameterVariance.kt
+++ b/core/testdata/format/typeParameterVariance.kt
@@ -1,2 +1,5 @@
+/**
+ * @param T the class parameter type
+ */
class Foo<out T> {
}
diff --git a/core/testdata/format/typeParameterVariance.md b/core/testdata/format/typeParameterVariance.md
index c0bfa6de..241c2e87 100644
--- a/core/testdata/format/typeParameterVariance.md
+++ b/core/testdata/format/typeParameterVariance.md
@@ -5,6 +5,10 @@
`class Foo&lt;out&nbsp;T&gt;`
+### Parameters
+
+`T` - the class parameter type
+
### Constructors