mirror of https://github.com/stretchr/testify.git
Prior to this commit, this would not work: ```go type myInt int assert.Less(t, myInt(1), myInt(2)) // panic! ``` We add some type conversions, similarly to how `ObjectsAreEqualValues` work. This allows us to compare `myInt` to `myInt`, as well as `myInt` to `int`. |
||
---|---|---|
.. | ||
assertion_compare.go | ||
assertion_compare_test.go | ||
assertion_format.go | ||
assertion_format.go.tmpl | ||
assertion_forward.go | ||
assertion_forward.go.tmpl | ||
assertions.go | ||
assertions_test.go | ||
doc.go | ||
errors.go | ||
forward_assertions.go | ||
forward_assertions_test.go | ||
http_assertions.go | ||
http_assertions_test.go |