aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-12 16:32:30 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-12 16:32:30 +0100
commitc4f40a03404641a9a42e6518cb066f2e0ae609e0 (patch)
tree9e548c4057941392f79e48c18fd43b86580780bc /test
parent49feb9021ca24150257caac4a62af5628f52b6b5 (diff)
downloaddokka-c4f40a03404641a9a42e6518cb066f2e0ae609e0.tar.gz
dokka-c4f40a03404641a9a42e6518cb066f2e0ae609e0.tar.bz2
dokka-c4f40a03404641a9a42e6518cb066f2e0ae609e0.zip
better display for enum members
Diffstat (limited to 'test')
-rw-r--r--test/data/format/enumClass.kt4
-rw-r--r--test/data/format/enumClass.md25
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
3 files changed, 35 insertions, 0 deletions
diff --git a/test/data/format/enumClass.kt b/test/data/format/enumClass.kt
new file mode 100644
index 00000000..5988c644
--- /dev/null
+++ b/test/data/format/enumClass.kt
@@ -0,0 +1,4 @@
+public enum class InlineOption {
+ LOCAL_CONTINUE_AND_BREAK
+ ONLY_LOCAL_RETURN
+}
diff --git a/test/data/format/enumClass.md b/test/data/format/enumClass.md
new file mode 100644
index 00000000..1f2df115
--- /dev/null
+++ b/test/data/format/enumClass.md
@@ -0,0 +1,25 @@
+[test](out.md) / [](out.md) / [InlineOption](out.md)
+
+
+# InlineOption
+
+
+```
+public enum class InlineOption
+```
+
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](out.md) | `private InlineOption()` |
+
+
+### Enum Values
+
+
+| [LOCAL_CONTINUE_AND_BREAK](out.md) | `public enum val LOCAL_CONTINUE_AND_BREAK : [InlineOption](out.md)` |
+| [ONLY_LOCAL_RETURN](out.md) | `public enum val ONLY_LOCAL_RETURN : [InlineOption](out.md)` |
+
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index 3d32743f..8cb6091f 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -46,4 +46,10 @@ public class MarkdownFormatTest {
markdownService.appendNodes(tempLocation, output, model.members.single().members)
}
}
+
+ Test fun enumClass() {
+ verifyOutput("test/data/format/enumClass.kt", ".md") { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
}