aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/format/enumClass.kt4
-rw-r--r--test/data/format/enumClass.md25
-rw-r--r--test/data/format/enumClass.value.md0
-rw-r--r--test/src/format/MarkdownFormatTest.kt10
4 files changed, 39 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..e1c4144e
--- /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
+
+
+| [<init>](out.md) | `private InlineOption()` |
+
+
+### Enum Values
+
+
+| [LOCAL_CONTINUE_AND_BREAK](out.md) | `` |
+| [ONLY_LOCAL_RETURN](out.md) | `` |
+
diff --git a/test/data/format/enumClass.value.md b/test/data/format/enumClass.value.md
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/data/format/enumClass.value.md
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index 3d32743f..1b8b1cc0 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -46,4 +46,14 @@ 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)
+ }
+ verifyOutput("test/data/format/enumClass.kt", ".value.md") { model, output ->
+ val documentationNode = model.members.single()
+ markdownService.appendNodes(tempLocation, output, listOf(documentationNode.members[0].members[1]))
+ }
+ }
}