From db4b435716f150ce0e92f4e5d6e2b01e67d07086 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 27 Oct 2024 22:00:31 +0200 Subject: initial refactor --- internal/entry/entry_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/entry/entry_test.go') diff --git a/internal/entry/entry_test.go b/internal/entry/entry_test.go index c59dc16..ac97f04 100644 --- a/internal/entry/entry_test.go +++ b/internal/entry/entry_test.go @@ -94,6 +94,9 @@ func TestHasTag(t *testing.T) { if err != nil { t.Error(err) } + if len(expectedTags) != len(ent.tags) { + t.Errorf("expected '%d' tags but got '%d'", len(expectedTags), len(ent.tags)) + } for _, tag := range expectedTags { if !ent.HasTag(tag) { t.Errorf("expected tag '%s' but got '%s'", tag, ent.tags) -- cgit v1.2.3