The use of reflect.DeepEqual()
inside Eq()
matcher is not trivial but not documented.
#151
Labels
documentation
Improvements or additions to documentation
After reading both of the function name (i.e.
Eq()
) and its doc comments (text + examples), one cannot infer the result of this simple code:Actually
???
istrue
becausereflect.DeepEqual()
is called insideEq()
matcher: sourceIs this behavior guaranteed but not just documented? In other words, it this a documentation bug?
Or is this an implementation bug?
After reading all of these three, there is still an ambiguity what is "equality":
The name of the function is just "Eq" (not something like
DeepEq
)Its document just says
Its example is
The text was updated successfully, but these errors were encountered: