Right now, if I need to check that the value vof Try[T]type is what Success(t)I like:
v.isSuccess shouldBe true
I wonder if there are probably a few better ways. For example, for Option[T]we can argue that:
t shouldBe defined
Probably for Try[T]there is something similar, but I do not know, and searching the Internet does not help.
source
share