Skip to content

Commit

Permalink
Swap expected and got fields (#1282)
Browse files Browse the repository at this point in the history
This is just a small nit from #1281 - I think the expected and got
fields of the test case structs are flipped.
  • Loading branch information
JacobOaks authored May 8, 2023
1 parent 24b7977 commit 382e251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exp/zapfield/zapfield_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func TestFieldConstructors(t *testing.T) {

tests := []struct {
name string
field zap.Field
expect zap.Field
field zap.Field
}{
{"Str", zap.Field{Type: zapcore.StringType, Key: "test key", String: "test value"}, Str(key, value)},
{"Strs", zap.Array("test key", stringArray[MyValue]{"test value 1", "test value 2"}), Strs(key, values)},
Expand Down

0 comments on commit 382e251

Please sign in to comment.