aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/format/starProjection.kt3
-rw-r--r--test/data/format/starProjection.md8
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
3 files changed, 17 insertions, 0 deletions
diff --git a/test/data/format/starProjection.kt b/test/data/format/starProjection.kt
new file mode 100644
index 00000000..1532c830
--- /dev/null
+++ b/test/data/format/starProjection.kt
@@ -0,0 +1,3 @@
+public inline fun Iterable<*>.containsFoo(element: Any?): Boolean {
+ return false
+}
diff --git a/test/data/format/starProjection.md b/test/data/format/starProjection.md
new file mode 100644
index 00000000..10114081
--- /dev/null
+++ b/test/data/format/starProjection.md
@@ -0,0 +1,8 @@
+[test](test/index) / [Iterable](test/-iterable/index)
+
+
+### Extensions for Iterable
+
+
+| [containsFoo](test/-iterable/contains-foo) | `inline fun Iterable&lt;*&gt;.containsFoo(element:&nbsp;Any?): Boolean` |
+
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index 32a641ff..76ead835 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -168,6 +168,12 @@ public class MarkdownFormatTest {
}
}
+ @Test fun starProjection() {
+ verifyOutput("test/data/format/starProjection.kt", ".md") { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
+
@Test fun extensionFunctionParameter() {
verifyOutput("test/data/format/extensionFunctionParameter.kt", ".md") { model, output ->
markdownService.appendNodes(tempLocation, output, model.members.single().members)