munit.Compare
See theCompare companion object
A type-class that is used to compare values in MUnit assertions.
By default, uses == and allows comparison between any two types as long they have a supertype/subtype relationship. For example:
Compare[T, T]OKCompare[Some[Int], Option[Int]]OK, subtypeCompare[Option[Int], Some[Int]]OK, supertypeCompare[List[Int], collection.Seq[Int]]OK, subtypeCompare[List[Int], Vector[Int]]Error, requires upcast to Seq[Int]`
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article