package lang
- Alphabetic
- Public
- All
Type Members
-
trait
Equals extends TypeCheckedTripleEquals
A trait that provides a org.scalactic.TypeCheckedTripleEquals.CheckingEqualizer for any type
A trait that provides a org.scalactic.TypeCheckedTripleEquals.CheckingEqualizer for any type
Overview
This trait provides a org.scalactic.TypeCheckedTripleEquals.CheckingEqualizer for org.scalactic.TypeCheckedTripleEquals. For more details, see org.scalactic.TypeCheckedTripleEquals.
- See also
Value Members
-
object
Equals extends Equals
A object that provides a org.scalactic.TypeCheckedTripleEquals.CheckingEqualizer for any type
A object that provides a org.scalactic.TypeCheckedTripleEquals.CheckingEqualizer for any type
Overview
This object is useful to use the features provided by lerna.util.lang.Equals without mix-in the trait.
scala> import lerna.util.lang.Equals._ scala> 1 === 1 res0: Boolean = true scala> 1 === 2 res1: Boolean = false
A compile error occurs if the wrong types are compared.
scala> import lerna.util.lang.Equals._ scala> import org.scalatest.Assertions._ scala> assertDoesNotCompile("1 === 1.0").isSucceeded res0: Boolean = true
Example: