aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/format/annotations.kt4
-rw-r--r--test/data/format/annotations.md30
-rw-r--r--test/src/format/MarkdownFormatTest.kt2
-rw-r--r--test/src/model/ClassTest.kt1
4 files changed, 34 insertions, 3 deletions
diff --git a/test/data/format/annotations.kt b/test/data/format/annotations.kt
index 445ec969..9356d4ca 100644
--- a/test/data/format/annotations.kt
+++ b/test/data/format/annotations.kt
@@ -1,4 +1,6 @@
data class Foo {
- inline fun bar() {
+ inline fun bar([noinline] notInlined: () -> Unit) {
}
+
+ inline val x: Int
}
diff --git a/test/data/format/annotations.md b/test/data/format/annotations.md
index e69de29b..83f79397 100644
--- a/test/data/format/annotations.md
+++ b/test/data/format/annotations.md
@@ -0,0 +1,30 @@
+[test](out.md) / [](out.md) / [Foo](out.md)
+
+
+# Foo
+
+
+```
+data class Foo
+```
+
+
+
+
+### Constructors
+
+
+| [<init>](out.md) | `public Foo()` |
+
+
+### Properties
+
+
+| [x](out.md) | `inline val x: Int` |
+
+
+### Functions
+
+
+| [bar](out.md) | `inline fun bar(noinline notInlined: () -> Unit): Unit` |
+
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index e9852964..531980de 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -21,7 +21,7 @@ public class MarkdownFormatTest {
}
Test fun annotations() {
- verifyOutput("test/data/format/annotations.kt") { model, output ->
+ verifyOutput("test/data/format/annotations.kt", ".md") { model, output ->
markdownService.appendNodes(tempLocation, output, model.members.single().members)
}
}
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt
index b9be30bf..257d73eb 100644
--- a/test/src/model/ClassTest.kt
+++ b/test/src/model/ClassTest.kt
@@ -166,7 +166,6 @@ public class ClassTest {
}
}
}
-}
Test fun annotatedClass() {
verifyModel("test/data/classes/annotatedClass.kt") { model ->