Skip to content

Commit

Permalink
chore: Add test case for filtering the new word in input strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonuc committed Oct 3, 2024
1 parent bf72da0 commit 8484406
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions goaway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ func TestProfanityDetector_Censor(t *testing.T) {
expectedOutput: "document **** document ****",
expectedOutputWithoutSpaceSanitization: "document **** document ****",
},
{
input: "Everyone was staring, and someone muttered ‘gyat’ under their breath.",
expectedOutput: "Everyone was staring, and someone muttered ‘****’ under their breath.",
expectedOutputWithoutSpaceSanitization: "Everyone was staring, and someone muttered ‘****’ under their breath.",
},
}
for _, tt := range tests {
t.Run("default_"+tt.input, func(t *testing.T) {
Expand Down

0 comments on commit 8484406

Please sign in to comment.