aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/ClassTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r--test/src/model/ClassTest.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt
index b95a31dc..b9be30bf 100644
--- a/test/src/model/ClassTest.kt
+++ b/test/src/model/ClassTest.kt
@@ -167,3 +167,17 @@ public class ClassTest {
}
}
}
+
+ Test fun annotatedClass() {
+ verifyModel("test/data/classes/annotatedClass.kt") { model ->
+ with(model.members.single().members.single()) {
+ assertEquals(1, annotations.count())
+ with(annotations[0]) {
+ assertEquals("data", name)
+ assertEquals(Content.Empty, content)
+ assertEquals(DocumentationNode.Kind.Annotation, kind)
+ }
+ }
+ }
+ }
+}