From f93ff9c31a815a448b03c3d76d21fd0a6d45c58d Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Feb 2015 16:01:51 +0100 Subject: correctly render bounds of type parameters in declarations --- test/src/format/MarkdownFormatTest.kt | 6 ++++++ test/src/model/FunctionTest.kt | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'test/src') diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index 77c03ed2..57882c1a 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -104,4 +104,10 @@ public class MarkdownFormatTest { markdownService.appendNodes(tempLocation, output, model.members.single().members) } } + + Test fun typeParameterBounds() { + verifyOutput("test/data/format/typeParameterBounds.kt", ".md") { model, output -> + markdownService.appendNodes(tempLocation, output, model.members.single().members) + } + } } diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt index c648cb55..e40777af 100644 --- a/test/src/model/FunctionTest.kt +++ b/test/src/model/FunctionTest.kt @@ -91,8 +91,6 @@ public class FunctionTest { assertEquals(DocumentationNode.Kind.TypeParameter, kind) assertEquals(Content.Empty, content) with(details.single()) { - assertEquals("R", name) - assertEquals("R", name) assertEquals("R", name) assertEquals(DocumentationNode.Kind.UpperBound, kind) assertEquals(Content.Empty, content) -- cgit