travis-ci
12392 of 12629 relevant lines covered (98.12%)
2.78 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
2 |
import unittest |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
3 |
from 臺灣言語工具.音標系統.閩南語.教會系羅馬音標 import 教會系羅馬音標 |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
4 |
from 臺灣言語工具.音標系統.閩南語.教會系羅馬音標 import 教會系羅馬音標聲調符號表 |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
5 |
|
|
6 |
|
|
7 |
class 教會系羅馬音標單元試驗(unittest.TestCase): |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
8 |
def setUp(self): |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
9 |
pass
|
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
10 |
|
|
11 |
def tearDown(self): |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
12 |
pass
|
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
13 |
|
|
14 |
def test_教會系羅馬音標聲調符號表有正規無(self): |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
15 |
正規法 = 教會系羅馬音標.正規法 |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
16 |
for 原本, _ in 教會系羅馬音標聲調符號表.items(): |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
17 |
self.assertEqual(原本, 正規法(None, 原本)) |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |
18 |
self.assertLessEqual(len(原本), 3) |
2 only TOX_ENV=單元試驗 and TOX_ENV=單元試驗 ✔ |