I am new to using the fully fledged scalatest and the relatively new ShouldVerb
in version 3.0.0 (ex ShouldMatchers
). What I'd like to test is something along the lines of the following:
import org.scalatest.FunSuite
import org.scalatest.words.ShouldVerb
class MyFunTest extends FunTest with ShouldVerb {
test("the world makes sense") {
math.abs(1.0 - (1.0 - 1e-10)) should be < 1e-9
}
}
but this leads to the compiler error:
value should is not a member of Double