diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-28 11:55:00 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-29 11:57:21 +0100 |
commit | 61b9aca39c550b699bdc769b1b312abc718fc64b (patch) | |
tree | be0b07aaa0dad195b17e81d2edf8bbfeca44f71b /test | |
parent | cd805e5330ec555b107881e78437eecee55a42b5 (diff) | |
download | dokka-61b9aca39c550b699bdc769b1b312abc718fc64b.tar.gz dokka-61b9aca39c550b699bdc769b1b312abc718fc64b.tar.bz2 dokka-61b9aca39c550b699bdc769b1b312abc718fc64b.zip |
summarize signatures for properties
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/summarizeSignaturesProperty.kt | 20 | ||||
-rw-r--r-- | test/data/format/summarizeSignaturesProperty.md | 23 | ||||
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 6 |
3 files changed, 49 insertions, 0 deletions
diff --git a/test/data/format/summarizeSignaturesProperty.kt b/test/data/format/summarizeSignaturesProperty.kt new file mode 100644 index 00000000..fbbdd328 --- /dev/null +++ b/test/data/format/summarizeSignaturesProperty.kt @@ -0,0 +1,20 @@ +package kotlin + +class Array<T> +class IntArray +class CharArray + +/** + * Returns true if foo. + */ +val IntArray.foo: Int = 0 + +/** + * Returns true if foo. + */ +val CharArray.foo: Int = 0 + +/** + * Returns true if foo. + */ +val <T> Array<T>.foo: Int = 0 diff --git a/test/data/format/summarizeSignaturesProperty.md b/test/data/format/summarizeSignaturesProperty.md new file mode 100644 index 00000000..9646b0f1 --- /dev/null +++ b/test/data/format/summarizeSignaturesProperty.md @@ -0,0 +1,23 @@ +[test](test/index) / [kotlin](test/kotlin/index) + + +## Package kotlin + + +### Types + + +| [Array](test/kotlin/-array/index) | `class Array<T>` | +| [CharArray](test/kotlin/-char-array/index) | `class CharArray` | +| [IntArray](test/kotlin/-int-array/index) | `class IntArray` | + + +### Properties + + +| [foo](test/kotlin/foo) | `val <T> any_array<T>.foo: Int` + +Returns true if foo. + + | + diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index d981561f..64c8eeae 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -185,4 +185,10 @@ public class MarkdownFormatTest { markdownService.appendNodes(tempLocation, output, model.members) } } + + @Test fun summarizeSignaturesProperty() { + verifyOutput("test/data/format/summarizeSignaturesProperty.kt", ".md") { model, output -> + markdownService.appendNodes(tempLocation, output, model.members) + } + } } |