diff options
Diffstat (limited to 'internal/entry/entry_test.go')
| -rw-r--r-- | internal/entry/entry_test.go | 3 |
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) |
