Move files

This commit is contained in:
Andras Schmelczer 2022-06-25 14:01:14 +02:00
parent 79ddc5c7df
commit 8b004ec46d
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
233 changed files with 117 additions and 2394 deletions

View file

@ -0,0 +1,16 @@
import unittest
from src.great_ai.utilities import get_sentences
class TestGetSentences(unittest.TestCase):
def test_default(self) -> None:
text = "This is a complete sentence. So is this. However this is n" # ot.
expected = ["This is a complete sentence.", "So is this.", "However this is n"]
assert get_sentences(text) == expected
assert get_sentences(text, ignore_partial=True) == expected[0:2]
def test_empty(self) -> None:
assert get_sentences("") == []
assert get_sentences("", ignore_partial=True) == []