* Add tests for word shape features

This commit is contained in:
Matthew Honnibal 2014-09-01 23:26:17 +02:00
parent c5abb81f4c
commit 4c7b997df7

View File

@ -9,10 +9,10 @@ def test_capitalized():
assert ws('Nasa') == 'Xxxx'
def test_truncate():
assert ws('capitalized') == 'xxx'
assert ws('capitalized') == 'xxxxx'
def test_digits():
assert ws('999999999') == 'ddd'
assert ws('999999999') == 'ddddd'
def test_mix():
assert ws('C3P0') == 'XdXd'