testify/assert
Neil Conway 49c5c6cdb1 Avoid relying on undefined behavior in assert.ObjectsAreEqual().
The previous assert.ObjectsAreEqual() implementation is broken in go 1.4beta1:

   x := uint64(3)
   log.Printf("equal? %t", assert.ObjectsAreEqual(3, x))

This prints "true" under Go 1.3 and "false" under 1.4beta1 (amd64/darwin).

The reason is that the ObjectsAreEqual() was comparing two reflect.Value values
for equality using ==, but the behavior of that operation is apparently
undefined (https://code.google.com/p/go/issues/detail?id=9034). The fix is to do
the type conversion and then do the comparison between two interface{} values.
2014-10-31 16:02:32 -07:00
..
assertions.go Avoid relying on undefined behavior in assert.ObjectsAreEqual(). 2014-10-31 16:02:32 -07:00
assertions_test.go Implement Regexp and NotRegexp 2014-09-13 13:13:42 -06:00
doc.go Allow Contains and NotContains to check slices and arrays 2014-08-21 11:13:02 -03: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