Skip to content

Commit 8b3fc21

Browse files
samberSogoKato
andauthored
Update attributes_test.go
Co-authored-by: Sogo Kato <52343534+SogoKato@users.noreply.github.com>
1 parent 8d9ac74 commit 8b3fc21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

attributes_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,12 @@ func TestRemoveEmptyAttrs(t *testing.T) {
354354
[]slog.Attr{slog.Bool("bool", true), slog.Int("int", 42)},
355355
),
356356
)
357+
is.Equal(
358+
[]slog.Attr{slog.Bool("bool", false), slog.Int("int", 42)},
359+
RemoveEmptyAttrs(
360+
[]slog.Attr{slog.Bool("bool", false), slog.Int("int", 42)},
361+
),
362+
)
357363

358364
// remove if missing keys
359365
is.Equal(

0 commit comments

Comments
 (0)