diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-05-05 15:36:12 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-08-19 15:37:23 +0200 |
commit | 07e4ae210b34e64a84731133f6ea4761baa19057 (patch) | |
tree | 0f254d28d304402486d72712a5060c6481596857 /dottydoc/jvm/test/WhitelistedStdLib.scala | |
parent | 8e39b71b29afd7951745dbaf957eade0e9f51434 (diff) | |
download | dotty-07e4ae210b34e64a84731133f6ea4761baa19057.tar.gz dotty-07e4ae210b34e64a84731133f6ea4761baa19057.tar.bz2 dotty-07e4ae210b34e64a84731133f6ea4761baa19057.zip |
Replace "$plus" with "+" in webview
Diffstat (limited to 'dottydoc/jvm/test/WhitelistedStdLib.scala')
-rw-r--r-- | dottydoc/jvm/test/WhitelistedStdLib.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dottydoc/jvm/test/WhitelistedStdLib.scala b/dottydoc/jvm/test/WhitelistedStdLib.scala index bbf0b4c6b..88dc67e99 100644 --- a/dottydoc/jvm/test/WhitelistedStdLib.scala +++ b/dottydoc/jvm/test/WhitelistedStdLib.scala @@ -14,4 +14,19 @@ class TestWhitelistedCollections extends DottyTest { assert(array.comment.get.body.length > 0) } + + @Test def traitImmutableHasDocumentation = + checkFiles(WhitelistedStandardLib.files) { doc => + val imm = doc + .packages("scala") + .children.find(_.path.mkString(".") == "scala.Immutable") + .get + + assert( + imm.kind == "trait" && imm.name == "Immutable", + "Found wrong `Immutable`") + assert( + imm.comment.map(_.body).get.length > 0, + "Imm did not have a comment with length > 0") + } } |