-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
92 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
from unittest.case import TestCase | ||
from 臺灣言語工具.基本物件.公用變數 import 敢是拼音字元 | ||
|
||
|
||
class 敢是拼音字元單元試驗(TestCase): | ||
|
||
def test_大寫(self): | ||
self.assertTrue(敢是拼音字元('A')) | ||
|
||
def test_調符(self): | ||
self.assertTrue(敢是拼音字元('ē')) | ||
|
||
def test_漢(self): | ||
self.assertFalse(敢是拼音字元('漢')) | ||
|
||
def test_漢羅(self): | ||
self.assertFalse(敢是拼音字元('媠sui2')) | ||
|
||
def test_羅漢(self): | ||
self.assertFalse(敢是拼音字元('sui媠')) | ||
|
||
def test_None(self): | ||
self.assertFalse(敢是拼音字元(None)) | ||
|
||
def test_khang(self): | ||
self.assertFalse(敢是拼音字元('')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters