Skip to content

Commit

Permalink
Update goaway_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TwiN authored Aug 10, 2020
1 parent 5162fde commit 3a4b66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goaway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestSentencesWithNoProfanities(t *testing.T) {
}

func TestSentencesWithFalsePositives(t *testing.T) {
sentences := []string{"I am from Scuntthorpe, north Lincolnshire", "He is an associate of mine"}
sentences := []string{"I am from Scuntthorpe, north Lincolnshire", "He is an associate of mine", "Are you an assassin?"}
for _, s := range sentences {
if goaway.IsProfane(s) {
t.Error("Expected false, got true from sentence", s)
Expand All @@ -78,7 +78,7 @@ func TestSentencesWithFalsePositives(t *testing.T) {
}

func TestSentencesWithFalsePositivesAndProfanities(t *testing.T) {
sentences := []string{"You are a shitty associate", "Go back to Scuntthorpe, Asshole!"}
sentences := []string{"You are a shitty associate", "Go away, asshole!"}
for _, s := range sentences {
if !goaway.IsProfane(s) {
t.Error("Expected true, got false from sentence", s)
Expand Down

0 comments on commit 3a4b66b

Please sign in to comment.