Skip to content

Commit

Permalink
cmd/root2npy: use internal/diff
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Binet <binet@cern.ch>
  • Loading branch information
sbinet committed Sep 6, 2023
1 parent 0e69116 commit 1d490da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root2npy/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"testing"

"github.com/sbinet/npyio"
"go-hep.org/x/hep/internal/diff"
)

func TestProcess(t *testing.T) {
Expand Down Expand Up @@ -89,7 +90,7 @@ func TestProcess(t *testing.T) {
}

if got, want := got.String(), tc.want; got != want {
t.Fatalf("invalid npy:\ngot:\n%s\nwant:\n%s\n", got, want)
t.Fatalf("invalid npy:\ngot:\n%s\nwant:\n%s\ndiff:\n%s", got, want, diff.Format(got, want))
}
})
}
Expand Down

0 comments on commit 1d490da

Please sign in to comment.