-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Support to match any instances are required.
The following test fails, since there is not equality check for type Data:
"for case classes":
"can compare" in:
class Data(value: Int)
expect(Data(1)).toEqual(Data(1))
[error] /Users/markus/Development/factor10/dotty-intent/src/test/scala/intent/matchers/ToEqualTest.scala:117:41: no implicit argument of type intent.core.Eq[Data] was found for parameter eqq of method toEqual in trait ExpectGivens.
[error] I found:
[error]
[error] this.tryEq[TInner, T]
[error]
[error] But method tryEq in trait EqGivens does not match type intent.core.Eq[Data].
[error] expect(Data(1)).toEqual(Data(1))
[error] ^
[error] one error found
[error] (Test / compileIncremental) Compilation failed
[error] Total time: 5 s, completed 19 feb. 2020 23:24:51
Preferably any types should be comparable with toEqual at least. Result should be a pretty-printed type and structural difference between expected and actual.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request