Skip to content

v0.0.3

Compare
Choose a tag to compare
@autarch autarch released this 27 Mar 03:37
· 15 commits to master since this release
  • Fixed a number of bugs with the handling of nil values. If you called d.Is(nil, d.Map(...)) you'd get a panic instead of a failure. The same applied to d.Slice, d.Struct, and the FuncComparer returned by d.Func and d.NamedFunc. If you called d.Is(nil, ...) it would sometimes consider the two argument not nil, if the second argument was a nil of a specific type (like you get if you write var s *string or var s []int).
  • Calling d.Passes recorded the call's path as d.Is instead of d.Passes.
  • Fixed various bugs in struct testing that could lead to panics instead of test failures.