diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2020-03-10 18:39:19 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-16 15:31:20 +0100 |
commit | fb27b386af878a7cd942e97701b66a0d67f7778c (patch) | |
tree | 83957e5bbbc9d1b68ff4430546b6b5e6d0b7f094 /plugins/base/src/test/kotlin/issues | |
parent | 996feefe717ac623daabaadda71b5b9d2bbe1cf1 (diff) | |
download | dokka-fb27b386af878a7cd942e97701b66a0d67f7778c.tar.gz dokka-fb27b386af878a7cd942e97701b66a0d67f7778c.tar.bz2 dokka-fb27b386af878a7cd942e97701b66a0d67f7778c.zip |
Extract inheritance map
Diffstat (limited to 'plugins/base/src/test/kotlin/issues')
-rw-r--r-- | plugins/base/src/test/kotlin/issues/IssuesTest.kt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/base/src/test/kotlin/issues/IssuesTest.kt b/plugins/base/src/test/kotlin/issues/IssuesTest.kt index e34c610a..1ad7a97b 100644 --- a/plugins/base/src/test/kotlin/issues/IssuesTest.kt +++ b/plugins/base/src/test/kotlin/issues/IssuesTest.kt @@ -4,6 +4,7 @@ import org.jetbrains.dokka.model.DClass import org.jetbrains.dokka.model.DFunction import org.junit.Test import utils.AbstractModelTest +import utils.name class IssuesTest : AbstractModelTest("/src/main/kotlin/issues/Test.kt", "issues") { @@ -35,14 +36,14 @@ class IssuesTest : AbstractModelTest("/src/main/kotlin/issues/Test.kt", "issues" ) { with((this / "issues" / "Test").cast<DClass>()) { // passes - (this / "working").cast<DFunction>().type.constructorFqName equals "kotlin.String" - (this / "doSomething").cast<DFunction>().type.constructorFqName equals "kotlin.String" + (this / "working").cast<DFunction>().type.name equals "String" + (this / "doSomething").cast<DFunction>().type.name equals "String" // fails - (this / "brokenGenerics").cast<DFunction>().type.constructorFqName equals "kotlin.collections.List" - (this / "brokenApply").cast<DFunction>().type.constructorFqName equals "issues.Test" - (this / "brokenRun").cast<DFunction>().type.constructorFqName equals "issues.Test" - (this / "brokenLet").cast<DFunction>().type.constructorFqName equals "issues.Test" + (this / "brokenGenerics").cast<DFunction>().type.name equals "List" + (this / "brokenApply").cast<DFunction>().type.name equals "Test" + (this / "brokenRun").cast<DFunction>().type.name equals "Test" + (this / "brokenLet").cast<DFunction>().type.name equals "Test" } } } |