我正在生成Javadocs.现在我想自动将所有库和JDK类链接到该lib或JDK的官方文档.这是可能的,如果是这样,我需要哪个命令行args
我有这个代码用于测试:
import org.scalatest.FlatSpec
import org.scalatest.matchers.Matchers
class TestSpec extends FlatSpec with Matchers {
"something" should "be something else" in {
"test" should be ("test")
}
}
Run Code Online (Sandbox Code Playgroud)
但是我得到这个错误:
Error:(21, 12) overloaded method value should with alternatives:
(resultOfAfterWordApplication: org.scalatest.verb.ResultOfAfterWordApplication)(implicit fun: (String, String, org.scalatest.verb.ResultOfAfterWordApplication) => Unit)Unit <and>
(right: => Unit)(implicit fun: org.scalatest.verb.StringVerbBlockRegistration)Unit <and>
(right: org.scalatest.verb.BehaveWord)(implicit fun: String => org.scalatest.verb.BehaveWord)org.scalatest.verb.BehaveWord <and>
(right: String)(implicit fun: (String, String, String) => org.scalatest.verb.ResultOfStringPassedToVerb)org.scalatest.verb.ResultOfStringPassedToVerb
cannot be applied to (org.scalatest.matchers.Matcher[Any])
"test" should be ("test")
^
Run Code Online (Sandbox Code Playgroud)
我正在从他们的网站直接获取代码,并通过maven描述符org.scalatest安装ScalaTest:scalatest_2.10.0:2.0.M5现在似乎是最新的
我正在阅读scala默认库代码,发现这篇文章:
trait TraversableLike[+A, +Repr] extends Any
with HasNewBuilder[A, Repr]
with FilterMonadic[A, Repr]
with TraversableOnce[A]
with GenTraversableLike[A, Repr]
with Parallelizable[A, ParIterable[A]]
{
self =>
...
}
Run Code Online (Sandbox Code Playgroud)
究竟是做什么的?
到目前为止我得到了什么:
= button_to 'Delete', "/blog/#{@post.id}", method: 'delete', class: 'btn btn-danger'
Run Code Online (Sandbox Code Playgroud)
但是添加 aconfirm: 'Are you sure'没有效果。而且那条线非常难看,我想缩短它。