Merge pull request #1274 from pipecat-ai/mb/add-ellipsis-test

Add one additional ellipsis test to test_utils_string
This commit is contained in:
Mark Backman
2025-02-23 11:26:20 -05:00
committed by GitHub

View File

@@ -17,6 +17,7 @@ class TestUtilsString(unittest.IsolatedAsyncioTestCase):
assert match_endofsentence("This is a sentence;") == 19
assert match_endofsentence("This is a sentence...") == 21
assert match_endofsentence("This is a sentence . . .") == 24
assert match_endofsentence("This is a sentence. ..") == 22
assert not match_endofsentence("This is not a sentence")
assert not match_endofsentence("This is not a sentence,")
assert not match_endofsentence("This is not a sentence, ")