Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
test: add gender unit test (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxcodec authored Jun 7, 2020
1 parent a395211 commit 492cb34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions person_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,10 @@ func TestFakeGender(t *testing.T) {
t.Error("Expected value from variable genders in function Gender")
}
}

func TestFakeGenderPublicFunction(t *testing.T) {
gender := Gender()
if !slice.Contains(genders, gender) {
t.Error("Expected value from variable genders in function Gender")
}
}

0 comments on commit 492cb34

Please sign in to comment.