summaryrefslogtreecommitdiff
path: root/internal/entry/entry_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-10-27 22:00:31 +0200
committerPaul Buetow <paul@buetow.org>2024-10-27 22:00:31 +0200
commitdb4b435716f150ce0e92f4e5d6e2b01e67d07086 (patch)
tree662d935708f14623cfe1d75a52d327741af55906 /internal/entry/entry_test.go
parent9827378121f1fc800171e84e4a9660615cb1f1db (diff)
initial refactor
Diffstat (limited to 'internal/entry/entry_test.go')
-rw-r--r--internal/entry/entry_test.go3
1 files changed, 3 insertions, 0 deletions
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)