(self)
| 8 | |
| 9 | class TestStringUtility(unittest.TestCase): |
| 10 | def test_enumerate_tokenization(self): |
| 11 | text = '商品和服务' |
| 12 | toks = possible_tokenization(text) |
| 13 | assert len(set(toks)) == 2 ** (len(text) - 1) |
| 14 | for each in toks: |
| 15 | assert ''.join(each) == text |
| 16 | |
| 17 | |
| 18 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected