Skip to content

Commit f69def8

Browse files
committed
Clean up custom testing types
1 parent 2ae6fa4 commit f69def8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

be/assertions_test.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ diff (-want +got):
146146
})
147147
}
148148

149-
type CustomString string
150-
151149
func TestEqual(t *testing.T) {
152150
t.Run("equal", func(t *testing.T) {
153151
g := ghost.New(t)
@@ -316,10 +314,7 @@ diff (-want +got):
316314
t.Run("custom string type", func(t *testing.T) {
317315
g := ghost.New(t)
318316

319-
type T struct {
320-
A string
321-
B int
322-
}
317+
type CustomString string
323318

324319
got := CustomString("foo")
325320
want := CustomString("bar")

0 commit comments

Comments
 (0)