aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/FunctionTest.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-09-08 16:46:19 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-09-08 16:46:19 +0200
commit4575396e10b604a7c013fc47d05e1b808ab4f4f2 (patch)
treece5f99baa3fd2923994e9664fdda7977e13a5c26 /test/src/model/FunctionTest.kt
parent43eb8f4eefb845d61f184f82a02dcfde3c7e1107 (diff)
downloaddokka-4575396e10b604a7c013fc47d05e1b808ab4f4f2.tar.gz
dokka-4575396e10b604a7c013fc47d05e1b808ab4f4f2.tar.bz2
dokka-4575396e10b604a7c013fc47d05e1b808ab4f4f2.zip
fix HTML entity handling after changes in markdown parser; remove detail count assertions from tests
Diffstat (limited to 'test/src/model/FunctionTest.kt')
-rw-r--r--test/src/model/FunctionTest.kt10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index e40777af..bbb7cdbc 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -1,8 +1,10 @@
package org.jetbrains.dokka.tests
+import org.jetbrains.dokka.Content
+import org.jetbrains.dokka.DocumentationNode
import org.junit.Test
-import kotlin.test.*
-import org.jetbrains.dokka.*
+import kotlin.test.assertEquals
+import kotlin.test.assertTrue
public class FunctionTest {
Test fun function() {
@@ -28,7 +30,6 @@ public class FunctionTest {
assertEquals("fn", name)
assertEquals(DocumentationNode.Kind.Function, kind)
assertEquals("Function with receiver", content.summary.toTestString())
- assertEquals(4, details.count())
assertEquals("internal", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
with(details.elementAt(2)) {
@@ -58,7 +59,6 @@ public class FunctionTest {
assertEquals(DocumentationNode.Kind.Function, kind)
assertEquals("generic function", content.summary.toTestString())
- assertEquals(4, details.count())
assertEquals("private", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
with(details.elementAt(2)) {
@@ -83,7 +83,6 @@ public class FunctionTest {
assertEquals(DocumentationNode.Kind.Function, kind)
assertEquals("generic function", content.summary.toTestString())
- assertEquals(5, details.count())
assertEquals("public", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
with(details.elementAt(2)) {
@@ -125,7 +124,6 @@ public class FunctionTest {
assertEquals("""Function
Documentation""", content.description.toTestString())
- assertEquals(4, details.count())
assertEquals("internal", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
with(details.elementAt(2)) {