diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-06-30 16:01:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 16:01:31 +0200 |
commit | 623b0e729c805e2ec019b1f56f67c5a2cf7eb327 (patch) | |
tree | a2be21288b69977900d4ad32250855f4ea08bad8 /plugins/javadoc/src/test | |
parent | fb589740213286cc5c2f240f248a10752187a9d7 (diff) | |
download | dokka-623b0e729c805e2ec019b1f56f67c5a2cf7eb327.tar.gz dokka-623b0e729c805e2ec019b1f56f67c5a2cf7eb327.tar.bz2 dokka-623b0e729c805e2ec019b1f56f67c5a2cf7eb327.zip |
Add enum synthetic functions to documentable model (#2553)
Diffstat (limited to 'plugins/javadoc/src/test')
-rw-r--r-- | plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt index c7a4db35..4f334460 100644 --- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt +++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt @@ -60,7 +60,8 @@ internal class JavadocIndexTest : AbstractJavadocTemplateMapTest() { @Test fun `generates correct number of index pages`() { testIndexPages(commonTestQuery) { indexPages -> - assertEquals(12, indexPages.size) + // index pages with letters of the alphabet, so A, B, C, D, E, etc + assertEquals(13, indexPages.size) } } @@ -71,7 +72,7 @@ internal class JavadocIndexTest : AbstractJavadocTemplateMapTest() { AnnotationTarget.ANNOTATION_CLASS::class.java.methods.any { it.name == "describeConstable" } testIndexPages(commonTestQuery) { indexPages -> - assertEquals(if (hasAdditionalFunction()) 31 else 30, indexPages.sumBy { it.elements.size }) + assertEquals(if (hasAdditionalFunction()) 33 else 32, indexPages.sumBy { it.elements.size }) } } |