diff --git a/addition-dictionary/STCharacters.txt b/addition-dictionary/STCharacters.txt index a14d957..162f533 100644 --- a/addition-dictionary/STCharacters.txt +++ b/addition-dictionary/STCharacters.txt @@ -1,2 +1 @@ -厘 厘 -佣 佣 \ No newline at end of file +厘 厘 diff --git a/addition-dictionary/STPhrases.txt b/addition-dictionary/STPhrases.txt index c88dbea..055bbdb 100644 --- a/addition-dictionary/STPhrases.txt +++ b/addition-dictionary/STPhrases.txt @@ -6,5 +6,4 @@ 公厘 公厘 厘米 厘米 汇总 匯總 -开户 開戶 -佣金 佣金 \ No newline at end of file +开户 開戶 \ No newline at end of file diff --git a/dictionary/HKPhrasesFinance.txt b/dictionary/HKPhrasesFinance.txt index e8b3a47..e9f2508 100644 --- a/dictionary/HKPhrasesFinance.txt +++ b/dictionary/HKPhrasesFinance.txt @@ -86,5 +86,3 @@ 開户 開戶 開户 開戶 户 戶 -開户 開戶 -户 戶 diff --git a/dictionary/STCharacters.txt b/dictionary/STCharacters.txt index 4655e39..e1943bf 100644 --- a/dictionary/STCharacters.txt +++ b/dictionary/STCharacters.txt @@ -581,7 +581,6 @@ 峤 嶠 峥 崢 峦 巒 -峰 峯 崂 嶗 崃 崍 崄 嶮 @@ -3978,5 +3977,4 @@ 𰾄 鋂 𰾭 鑀 𱊜 𪈼 -厘 厘 -佣 佣 \ No newline at end of file +厘 厘 diff --git a/dictionary/STPhrases.txt b/dictionary/STPhrases.txt index cacd7a9..c461cbd 100644 --- a/dictionary/STPhrases.txt +++ b/dictionary/STPhrases.txt @@ -49064,5 +49064,4 @@ 公厘 公厘 厘米 厘米 汇总 匯總 -开户 開戶 -佣金 佣金 \ No newline at end of file +开户 開戶 \ No newline at end of file diff --git a/opencc_test.go b/opencc_test.go index 6cef3b4..6f0855d 100644 --- a/opencc_test.go +++ b/opencc_test.go @@ -5,11 +5,11 @@ import ( "testing" ) -func assertCases(t *testing.T, cc *OpenCC, cases map[string]string) { +func assertCases(t *testing.T, s2t *OpenCC, cases map[string]string) { t.Helper() for k, v := range cases { - str, err := cc.Convert(k) + str, err := s2t.Convert(k) if err != nil { t.Error(err) } @@ -73,7 +73,6 @@ func TestSelfSpecialHotfix(t *testing.T) { cases := map[string]string{ "来自于汇丰,以及汇丰银行,汇入的款项": "來自於滙豐,以及滙豐銀行,匯入的款項", "汇业银行集团": "滙業銀行集團", - "佣金": "佣金", } assertCases(t, cc, cases)