Skip to content

Commit

Permalink
Add test for removed modifier rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
atyrin committed Nov 14, 2023
1 parent cc459b0 commit 653df6f
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,26 @@ class SignatureTest : BaseAbstractTest() {
}
}

@Test
fun `constructor property on class page`() {
val source = source("data class DataClass(val arg: String)")
val writerPlugin = TestOutputWriterPlugin()

testInline(
source,
configuration,
pluginOverrides = listOf(writerPlugin)
) {
renderingStage = { _, _ ->
assertEquals(
writerPlugin.writer.renderedContent("root/example/-data-class/index.html").lastSignature().html(),
"<span class=\"token keyword\">val </span><a href=\"arg.html\">arg</a><span class=\"token operator\">: </span><a href=\"https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html\">String</a>"

)
}
}
}

@Test
fun `functional interface`() {
val source = source("fun interface KRunnable")
Expand Down

0 comments on commit 653df6f

Please sign in to comment.