Skip to content

Commit

Permalink
add more real examples to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Jun 23, 2024
1 parent 60f74c5 commit 1ab4c8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tgspam/detector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ func TestDetector_CheckMultiLang(t *testing.T) {
{"WithCyrillic no MultiLang", "Привет мир", 0, false},
{"WithCyrillic two MultiLang", "Привеt мip", 2, true},
{"WithCyrillic and special symbols", "Привет мир -@#$%^&*(_", 0, false},
{"WithCyrillic real example 1", "Ищем заинтeрeсoвaнных в зaрaбoткe нa кpиптoвaлютe. Всeгдa хотeли пoпpoбовать сeбя в этом, нo нe знали с чeго нaчaть? Тогдa вaм кo мнe 3aнимаемся aрбuтражeм, зaрабaтывaeм на paзницe курсов с минимaльныmи pискaми 💲Рынok oчень волатильный и нам это выгoднo, пo этoмe пишиte @vitalgoescra и зapaбaтывaйтe сo мнoй ", 31, true},
{"WithCyrillic real example 2", "В поuске паpтнеров, заuнтересованных в пассuвном дoходе с затpатой мuнuмум лuчного временu. Все деталu в лс", 10, true},
{"WithCyrillic real example 3", "Всем привет, есть простая шабашка, подойдет любому. Даю 15 тысяч. Накину на проезд, сигареты, обед. ", 0, false},
}

for _, tt := range tests {
Expand Down

0 comments on commit 1ab4c8b

Please sign in to comment.