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
package dubaut.scalatest
import org.scalatest.EitherValues
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
class EitherTest extends AnyFlatSpec with EitherValues with Matchers {
val eitherValue: Either[Exception, Int] = Right(42)
eitherValue.right.value should be > 1
}
Result:
Symbol right is deprecated. Either is now right-biased, use methods directly on Either
Side-note: The documentation does not mention explicitly that not only EitherValue needs to be mixed-in but as well org.scalatest.matchers.should.Matchers.
The text was updated successfully, but these errors were encountered:
Following the instructions in the documentation for Using EitherValues leads to a Warning.
Repo case:
Result:
Side-note: The documentation does not mention explicitly that not only
EitherValue
needs to be mixed-in but as wellorg.scalatest.matchers.should.Matchers
.The text was updated successfully, but these errors were encountered: