Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@

* Fixed issue #12: Arrays are not properly compared (@samlitowitz)

## v1.0.0 releaesd 2017-10-27
## v1.0.0 released 2017-10-27

* First release
6 changes: 3 additions & 3 deletions deep.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@ func (c *cmp) equals(a, b reflect.Value, level int) {

if c.flag[FLAG_IGNORE_SLICE_ORDER] {
// Compare slices by value and value count; ignore order.
// Value equality is impliclity established by the maps:
// Value equality is implicitly established by the maps:
// any value v1 will hash to the same map value if it's equal
// to another value v2. Then equality is determiend by value
// count: presuming v1==v2, then the slics are equal if there
// to another value v2. Then equality is determined by value
// count: presuming v1==v2, then the slices are equal if there
// are equal numbers of v1 in each slice.
am := map[interface{}]int{}
for i := 0; i < a.Len(); i++ {
Expand Down
6 changes: 3 additions & 3 deletions deep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestTypeMismatch(t *testing.T) {
t.Error("wrong diff:", diff[0])
}

// Same pkg name but differnet full paths
// Same pkg name but different full paths
// https://github.com/go-test/deep/issues/39
err1 := v1.Error{}
err2 := v2.Error{}
Expand Down Expand Up @@ -1099,7 +1099,7 @@ func TestPointer(t *testing.T) {
}

func TestTime(t *testing.T) {
// In an interable kind (i.e. a struct)
// In an iterable kind (i.e. a struct)
type sTime struct {
T time.Time
}
Expand Down Expand Up @@ -1566,7 +1566,7 @@ func TestSliceOrderStruct(t *testing.T) {
// https://github.com/go-test/deep/issues/28
// This is NOT supported but Go is so wonderful that it just happens to work.
// But again: not supported. So if this test starts to fail or be a problem,
// it can and should be removed becuase the docs say it's not supported.
// it can and should be removed because the docs say it's not supported.
type T struct{ i int }
a := []T{
{i: 1},
Expand Down