-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overcome issue with fastutil (#3409)
- Loading branch information
Showing
5 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...pi/src/test/kotlin/org/jetbrains/dokka/analysis/test/documentable/SpecialCharacterTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package org.jetbrains.dokka.analysis.test.documentable | ||
|
||
import org.jetbrains.dokka.analysis.test.api.kotlinJvmTestProject | ||
import org.jetbrains.dokka.analysis.test.api.parse | ||
import org.jetbrains.dokka.model.doc.* | ||
import kotlin.test.Test | ||
import kotlin.test.assertEquals | ||
|
||
class SpecialCharacterTest { | ||
|
||
@Test | ||
fun `should be able to parse email`() { | ||
val project = kotlinJvmTestProject { | ||
ktFile("Klass.kt") { | ||
+""" | ||
/** | ||
* <me@mail.com> | ||
*/ | ||
class Klass | ||
""" | ||
} | ||
} | ||
|
||
val module = project.parse() | ||
|
||
val pkg = module.packages.single() | ||
val cls = pkg.classlikes.single() | ||
|
||
assertEquals("Klass", cls.name) | ||
|
||
val text = P( | ||
listOf( | ||
Text("<", params = mapOf("content-type" to "html")), | ||
Text("me@mail.com"), | ||
Text(">", params = mapOf("content-type" to "html")) | ||
) | ||
) | ||
val description = Description(CustomDocTag(listOf(text), name = "MARKDOWN_FILE")) | ||
|
||
assertEquals( | ||
DocumentationNode(listOf(description)), | ||
cls.documentation.values.single(), | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters