Skip to content

Commit

Permalink
Swap expected and got fields
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobOaks committed May 8, 2023
1 parent 24b7977 commit f51a735
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 f51a735

Please sign in to comment.