aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/model
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-17 08:49:22 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-17 11:52:28 +0200
commit89ddbd2603e24a349314c4be151edb25f0d2af31 (patch)
tree4654b6973cccd4c8478425d4b948c8c6b81e2ede /core/src/test/kotlin/model
parent6f40db680336e7f3b4b68a8d4ad7b8a7ffe33270 (diff)
downloaddokka-89ddbd2603e24a349314c4be151edb25f0d2af31.tar.gz
dokka-89ddbd2603e24a349314c4be151edb25f0d2af31.tar.bz2
dokka-89ddbd2603e24a349314c4be151edb25f0d2af31.zip
Implement CompositeSourceSetID.plus API
Diffstat (limited to 'core/src/test/kotlin/model')
-rw-r--r--core/src/test/kotlin/model/CompositeSourceSetIDTest.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/test/kotlin/model/CompositeSourceSetIDTest.kt b/core/src/test/kotlin/model/CompositeSourceSetIDTest.kt
index ab9a2ab1..472581e7 100644
--- a/core/src/test/kotlin/model/CompositeSourceSetIDTest.kt
+++ b/core/src/test/kotlin/model/CompositeSourceSetIDTest.kt
@@ -2,6 +2,7 @@ package model
import org.jetbrains.dokka.DokkaSourceSetID
import org.jetbrains.dokka.model.CompositeSourceSetID
+import org.jetbrains.dokka.model.plus
import kotlin.test.*
class CompositeSourceSetIDTest {
@@ -55,4 +56,13 @@ class CompositeSourceSetIDTest {
"Expected merged source set id being contained in composite"
)
}
+
+ @Test
+ fun `plus operator`() {
+ val composite = DokkaSourceSetID("m1", "s1") + DokkaSourceSetID("m2", "s2") + DokkaSourceSetID("m3", "s3")
+ assertEquals(
+ DokkaSourceSetID("m1+m2+m3", "s1+s2+s3"), composite.merged,
+ "Expected all three source sets being merged in order"
+ )
+ }
}