diff --git a/tests/test_emoticons.py b/tests/test_emoticons.py index 6bb58e661..143be607d 100644 --- a/tests/test_emoticons.py +++ b/tests/test_emoticons.py @@ -27,3 +27,9 @@ def test_tweebo_challenge(): assert tokens[19].string == '")' assert tokens[20].string == ':>' assert tokens[21].string == '....' + + +def test_false_positive(): + text = "example:)" + tokens = EN.tokenize(text) + assert len(tokens) == 3