clamshell icon indicating copy to clipboard operation
clamshell copied to clipboard

Add Equal Method to move.List

Open artasparks opened this issue 4 years ago • 0 comments

We should add an Equal method to move.List. This allows us to use cmp.Equal

See

  • Cmp documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp
  • Move List: https://github.com/otrego/clamshell/tree/master/core/move

Note that Equal methods must have the following properties

If the values have an Equal method of the form "(T) Equal(T) bool" or "(T) Equal(I) bool" where T is assignable to I, then use the result of x.Equal(y) even if x or y is nil. Otherwise, no such method exists and evaluation proceeds to the next rule.

artasparks avatar Feb 06 '21 19:02 artasparks