Skip to content

Commit 9ffcbdb

Browse files
committed
test: TypeOf([typed nil])
1 parent 28c96d4 commit 9ffcbdb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

log/value.libevm_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ func TestTypeOf(t *testing.T) {
2626
type foo struct{}
2727

2828
tests := map[any]string{
29-
nil: "<nil>",
30-
int(0): "int",
31-
int(1): "int",
32-
uint(0): "uint",
33-
foo{}: "log.foo",
29+
nil: "<nil>",
30+
int(0): "int",
31+
int(1): "int",
32+
uint(0): "uint",
33+
foo{}: "log.foo",
34+
(*foo)(nil): "*log.foo",
3435
}
3536

3637
for in, want := range tests {

0 commit comments

Comments
 (0)