Move files
This commit is contained in:
parent
79ddc5c7df
commit
8b004ec46d
233 changed files with 117 additions and 2394 deletions
16
tests/utilities/test_get_sentences.py
Normal file
16
tests/utilities/test_get_sentences.py
Normal 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) == []
|
||||
Loading…
Add table
Add a link
Reference in a new issue