You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Setting out to write some unit tests in Scala, I was faced with a problem that many others must have faced: which testing framework to build upon. Wanting to embue my tests with a particularly Scala-some flavour, I discarded the option of using JUnit directly, narrowing the field to ScalaTest and Specs2. I asked the question on Twitter, How do I choose between Specs2 and ScalaTest? and received an
Latest Release - ScalaTest and Scalactic 3.2.19! import collection.mutable.Stack import org.scalatest._ import flatspec._ import matchers._ class ExampleSpec extends AnyFlatSpec with should.Matchers { "A Stack" should "pop values in last-in-first-out order" in { val stack = new Stack[Int] stack.push(1) stack.push(2) stack.pop() should be (2) stack.pop() should be (1) } it should "throw NoSuchEleme
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く