travis-ci
12911 of 13174 relevant lines covered (98.0%)
1.47 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
2 |
|
|
3 |
|
|
4 |
def 尾字辭典揣詞(辭典揣詞類): |
1 only TOX_ENV=單元試驗 ✔ |
5 |
|
|
6 |
class 尾字辭典揣詞型態(辭典揣詞類): |
1 only TOX_ENV=單元試驗 ✔ |
7 |
|
|
8 |
@classmethod
|
1 only TOX_ENV=單元試驗 ✔ |
9 |
def _字陣列揣詞(cls, 辭典, 字陣列): |
|
10 |
辭典.查詞 = 辭典.揣詞查詞 |
1 only TOX_ENV=單元試驗 ✔ |
11 |
詞組合陣列, 分數, 詞數 = \ |
1 only TOX_ENV=單元試驗 ✔ |
12 |
super(尾字辭典揣詞型態, cls)._字陣列揣詞(辭典, 字陣列[::-1]) |
|
13 |
辭典.查詞 = 辭典.尾字查詞 |
1 only TOX_ENV=單元試驗 ✔ |
14 |
return 詞組合陣列[::-1], 分數, 詞數 |
1 only TOX_ENV=單元試驗 ✔ |
15 |
|
|
16 |
return 尾字辭典揣詞型態
|
1 only TOX_ENV=單元試驗 ✔ |