Skip to content

Commit

Permalink
Clean up custom testing types
Browse files Browse the repository at this point in the history
  • Loading branch information
rliebz committed Mar 7, 2024
1 parent 2ae6fa4 commit f69def8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions be/assertions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ diff (-want +got):
})
}

type CustomString string

func TestEqual(t *testing.T) {
t.Run("equal", func(t *testing.T) {
g := ghost.New(t)
Expand Down Expand Up @@ -316,10 +314,7 @@ diff (-want +got):
t.Run("custom string type", func(t *testing.T) {
g := ghost.New(t)

type T struct {
A string
B int
}
type CustomString string

got := CustomString("foo")
want := CustomString("bar")
Expand Down

0 comments on commit f69def8

Please sign in to comment.