Add sus updates
This commit is contained in:
parent
a7e3dc11fd
commit
3ef1a72418
31 changed files with 2502 additions and 970 deletions
|
|
@ -3,6 +3,7 @@ import unittest
|
|||
from src.great_ai.utilities.clean import clean
|
||||
|
||||
|
||||
|
||||
class TestClean(unittest.TestCase):
|
||||
def test_xml_handling(self) -> None:
|
||||
xml = '<strong>Hi, </strong> my name<br/>is <span style="color: hotpink;"> András</span>! <3 <> < ></><> <> <|'
|
||||
|
|
@ -59,6 +60,13 @@ class TestClean(unittest.TestCase):
|
|||
|
||||
self.assertEqual(clean(text), cleaned)
|
||||
|
||||
def test_T_I_T_L_E_case(self) -> None:
|
||||
text = "an a r t i c l e is to F I N D the purpose of a tree"
|
||||
|
||||
cleaned = "an article is to FIND the purpose of a tree"
|
||||
|
||||
self.assertEqual(clean(text), cleaned)
|
||||
|
||||
def test_bracket_removal(self) -> None:
|
||||
text = "something [0], and [frefe, ferf]"
|
||||
cleaned = "something, and"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue