testify/assert
Samuel Nelson 02a8ab057b Reverse ConvertibleTo check to avoid panic
in `ObjectsAreEqual`, `expectedValue.Convert(actualType)` was being called when
`actualType.ConvertibleTo(reflect.TypeOf(expected))` was true.  This was a problem
for situations such as when expected was an int and actual was a string, since
ints are `ConvertibleTo` strings, but the reverse is not true.

Changing the ConvertibleTo check to `expectedValue.Type().ConvertibleTo(actualType)`
solves the issue.
2015-01-10 12:18:57 -07:00
..
assertions.go Reverse ConvertibleTo check to avoid panic 2015-01-10 12:18:57 -07:00
assertions_test.go Merge pull request #110 from cryptix/master 2014-12-22 10:16:26 -07:00
doc.go replace imports in travis config to not break to origin 2014-11-30 09:53:17 +01:00
errors.go Clean up golint warnings 2014-06-18 09:28:16 -06:00
forward_assertions.go Implement Regexp and NotRegexp 2014-09-13 13:13:42 -06:00
forward_assertions_test.go Implement Regexp and NotRegexp 2014-09-13 13:13:42 -06:00
http_assertions.go Implement HTTP(Success|Error|Redirect) and HTTPBody(Not)Contains 2014-09-14 11:54:12 -06:00
http_assertions_test.go Implement HTTP(Success|Error|Redirect) and HTTPBody(Not)Contains 2014-09-14 11:54:12 -06:00