Closed
Description
Starting in 1.15.0 ShouldEqual
no longer functions properly.
func Test(t *testing.T) {
f := func() {}
str := assertions.ShouldEqual(f, f)
if len(str) != 0 {
panic(str)
}
}
This panics with:
{"Message":"Expected: (func())(0x0000000104b26d40)
Actual: (func())(0x0000000104b26d40)
(Should equal, but there is a type difference within the two)!","Expected":"(func())(0x0000000104b26d40)","Actual":"(func())(0x0000000104b26d40)"}
This work in 1.13.1
Metadata
Metadata
Assignees
Labels
No labels