Skip to content

Commit

Permalink
chore: add missing test for PersonConceptAndCount
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed Mar 12, 2024
1 parent ee41775 commit 72cc84c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/models_tests/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -916,3 +916,17 @@ func TestAddTimeoutToQuery(t *testing.T) {
t.Errorf("Expected result and NO error")
}
}

func TestPersonConceptAndCountString(t *testing.T) {
a := models.PersonConceptAndCount{
PersonId: 1,
ConceptId: 2,
Count: 3,
}

expected := "(person_id=1, concept_id=2, count=3)"
if a.String() != expected {
t.Errorf("Expected %s, found %s", expected, a.String())
}

}

0 comments on commit 72cc84c

Please sign in to comment.