aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/JavaTest.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index c727277a..6b3d7820 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -184,4 +184,12 @@ public class JavaTest {
assertEquals("Any", fn.detail(DocumentationNode.Kind.Type).name)
}
}
+
+ Test fun enumValues() {
+ verifyPackageMember("test/data/java/enumValues.java") { cls ->
+ val superTypes = cls.details(DocumentationNode.Kind.Supertype)
+ assertEquals(0, superTypes.size())
+ assertEquals(1, cls.members(DocumentationNode.Kind.EnumItem).size())
+ }
+ }
}