21 lines
440 B
Python
21 lines
440 B
Python
|
||
import cleaner
|
||
import traceback
|
||
|
||
try:
|
||
print("Testing cleaner...")
|
||
text = "В 1999 году."
|
||
res = cleaner.clean_response(text)
|
||
print(f"Result: {res}")
|
||
|
||
text = ""
|
||
res = cleaner.clean_response(text)
|
||
print(f"Result: {res}")
|
||
|
||
text = "[link](http://example.com)"
|
||
res = cleaner.clean_response(text)
|
||
print(f"Result: {res}")
|
||
|
||
except Exception:
|
||
traceback.print_exc()
|