mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
18 lines
350 B
Python
Executable File
18 lines
350 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from remove_punctuation import remove_punctuation
|
|
|
|
|
|
def test_remove_punctuation():
|
|
s = "a,b'c!#"
|
|
n = remove_punctuation(s)
|
|
assert n == "ab'c", n
|
|
|
|
s = " ab " # remove leading and trailing spaces
|
|
n = remove_punctuation(s)
|
|
assert n == "ab", n
|
|
|
|
|
|
if __name__ == "__main__":
|
|
test_remove_punctuation()
|