travis-ci
12251 of 12843 relevant lines covered (95.39%)
1.23 hits per line
1 |
from unittest.case import TestCase |
1 only TOX_ENV=HTS整合試驗 ✔ |
2 |
|
|
3 |
|
|
4 |
from 臺灣言語工具.解析整理.文章粗胚 import 文章粗胚 |
1 only TOX_ENV=HTS整合試驗 ✔ |
5 |
from 臺灣言語工具.解析整理.拆文分析器 import 拆文分析器 |
1 only TOX_ENV=HTS整合試驗 ✔ |
6 |
from 臺灣言語工具.音標系統.Pangcah.原住民族語言書寫系統秀姑巒阿美語 import 原住民族語言書寫系統秀姑巒阿美語 |
1 only TOX_ENV=HTS整合試驗 ✔ |
7 |
from 臺灣言語工具.語音合成.南島語語音標仔轉換 import 南島語語音標仔轉換 |
1 only TOX_ENV=HTS整合試驗 ✔ |
8 |
|
|
9 |
|
|
10 |
class 語音合成文本整合試驗(TestCase): |
1 only TOX_ENV=HTS整合試驗 ✔ |
11 |
|
|
12 |
def test_阿美文字處理(self): |
1 only TOX_ENV=HTS整合試驗 ✔ |
13 |
語句 = "Nga'ay ho?"
|
1 only TOX_ENV=HTS整合試驗 ✔ |
14 |
|
|
15 |
處理減號 = 文章粗胚.建立物件語句前減號變標點符號(語句) |
1 only TOX_ENV=HTS整合試驗 ✔ |
16 |
章物件 = 拆文分析器.建立章物件(處理減號) |
1 only TOX_ENV=HTS整合試驗 ✔ |
17 |
for 字物件 in 章物件.篩出字物件(): |
1 only TOX_ENV=HTS整合試驗 ✔ |
18 |
字物件.音 = 字物件.型 |
1 only TOX_ENV=HTS整合試驗 ✔ |
19 |
音值物件 = 章物件.轉音(原住民族語言書寫系統秀姑巒阿美語, 函式='音值')
|
1 only TOX_ENV=HTS整合試驗 ✔ |
20 |
標仔陣列 = 南島語語音標仔轉換.物件轉完整合成標仔(音值物件) |
1 only TOX_ENV=HTS整合試驗 ✔ |
21 |
愛合成標仔 = 南島語語音標仔轉換.跳脫標仔陣列(標仔陣列) |
1 only TOX_ENV=HTS整合試驗 ✔ |
22 |
self.assertGreaterEqual(len(愛合成標仔), 10) |
1 only TOX_ENV=HTS整合試驗 ✔ |