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] OK
- Compare[Some[Int], Option[Int]] OK, subtype
- Compare[Option[Int], Some[Int]] OK, supertype
- Compare[List[Int], collection.Seq[Int]] OK, subtype
- Compare[List[Int], Vector[Int]] Error, requires upcast to
Seq[Int]
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article