diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-26 23:21:49 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-29 02:14:51 -0700 |
commit | 676d6be02292900c2ba47f5c1a95b42ab81a7b93 (patch) | |
tree | 52f43477c7e6c1410d1bfb5215687be134e22327 /encode_test.go | |
parent | ec8f03e1f557a0e24380ab4763d937a22e9d4a1c (diff) |
.golangci.yml: Turn on 'dupword', fix
Diffstat (limited to 'encode_test.go')
-rw-r--r-- | encode_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/encode_test.go b/encode_test.go index bb09c4d..e50ddd0 100644 --- a/encode_test.go +++ b/encode_test.go @@ -32,12 +32,12 @@ func TestEncoderIndent(t *testing.T) { }) assert.NoError(t, enc.Encode(1)) - assert.NoError(t, enc.Encode(1)) + assert.NoError(t, enc.Encode(2)) assert.NoError(t, enc.Encode(struct{}{})) assert.NoError(t, enc.Encode([]int{9})) assert.NoError(t, enc.Encode(nil)) assert.NoError(t, enc.Encode(1)) - assert.Equal(t, "1\n1\n{}\n[\n\t9\n]\nnull\n1", out.String()) + assert.Equal(t, "1\n2\n{}\n[\n\t9\n]\nnull\n1", out.String()) } func TestEncode(t *testing.T) { |