aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/format/typeParameterBounds.kt6
-rw-r--r--test/data/format/typeParameterBounds.md15
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
-rw-r--r--test/src/model/FunctionTest.kt2
4 files changed, 27 insertions, 2 deletions
diff --git a/test/data/format/typeParameterBounds.kt b/test/data/format/typeParameterBounds.kt
new file mode 100644
index 00000000..5f22f8c5
--- /dev/null
+++ b/test/data/format/typeParameterBounds.kt
@@ -0,0 +1,6 @@
+
+/**
+ * generic function
+ */
+public fun <T : R, R> generic() {
+} \ No newline at end of file
diff --git a/test/data/format/typeParameterBounds.md b/test/data/format/typeParameterBounds.md
new file mode 100644
index 00000000..f9d39e8c
--- /dev/null
+++ b/test/data/format/typeParameterBounds.md
@@ -0,0 +1,15 @@
+[test](out.md) / [](out.md) / [generic](out.md)
+
+
+# generic
+
+
+```
+public fun &lt;T : R, R&gt; generic(): Unit
+```
+
+
+generic function
+
+
+
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index 77c03ed2..57882c1a 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -104,4 +104,10 @@ public class MarkdownFormatTest {
markdownService.appendNodes(tempLocation, output, model.members.single().members)
}
}
+
+ Test fun typeParameterBounds() {
+ verifyOutput("test/data/format/typeParameterBounds.kt", ".md") { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
}
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index c648cb55..e40777af 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -92,8 +92,6 @@ public class FunctionTest {
assertEquals(Content.Empty, content)
with(details.single()) {
assertEquals("R", name)
- assertEquals("R", name)
- assertEquals("R", name)
assertEquals(DocumentationNode.Kind.UpperBound, kind)
assertEquals(Content.Empty, content)
assertTrue(details.none())