Skip to content

Commit

Permalink
Merge pull request #7 from aphroteus/master
Browse files Browse the repository at this point in the history
fix: failed "undefined: xxd" on go test
  • Loading branch information
felixge committed Feb 22, 2020
2 parents 17253d2 + 74a1b2e commit 0492f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xxd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestXXD(t *testing.T) {
return strings.Split(out.String(), "\n")
}
}
if err := quick.CheckEqual(test(XXD), test(xxdNative), nil); err != nil {
if err := quick.CheckEqual(test(xxd), test(xxdNative), nil); err != nil {
cErr := err.(*quick.CheckEqualError)
size := cErr.In[0].(uint64) % uint64(len(data))
for i := range cErr.Out1[0].([]string) {
Expand Down Expand Up @@ -76,7 +76,7 @@ func BenchmarkXXD(b *testing.B) {
}
buf := bytes.NewBuffer(data)
b.StartTimer()
if err := XXD(buf, ioutil.Discard, ""); err != nil {
if err := xxd(buf, ioutil.Discard, ""); err != nil {
b.Fatal(err)
}
}
Expand Down

0 comments on commit 0492f87

Please sign in to comment.