Skip to content

Commit

Permalink
Fix 免佣 (#15)
Browse files Browse the repository at this point in the history
This reverts commit 0abb637.
  • Loading branch information
huacnlee authored Jun 6, 2024
1 parent a7cff5c commit eec5c56
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions addition-dictionary/STCharacters.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3 changes: 1 addition & 2 deletions addition-dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
公厘 公厘
厘米 厘米
汇总 匯總
开户 開戶
佣金 佣金
开户 開戶
4 changes: 2 additions & 2 deletions dictionary/STCharacters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3978,5 +3978,5 @@
𰾄 鋂
𰾭 鑀
𱊜 𪈼
3 changes: 1 addition & 2 deletions dictionary/STPhrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49064,5 +49064,4 @@
公厘 公厘
厘米 厘米
汇总 匯總
开户 開戶
佣金 佣金
开户 開戶
7 changes: 4 additions & 3 deletions opencc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -56,6 +56,7 @@ func TestConvert_s2hk_finance(t *testing.T) {
"套利交易": "對沖",
"下周开始公开配售": "下週開始公開招股",
"户": "戶",
"免佣": "免佣",
}

s2hk, err := New("s2hk-finance")
Expand All @@ -73,7 +74,7 @@ func TestSelfSpecialHotfix(t *testing.T) {
cases := map[string]string{
"来自于汇丰,以及汇丰银行,汇入的款项": "來自於滙豐,以及滙豐銀行,匯入的款項",
"汇业银行集团": "滙業銀行集團",
"佣金": "佣金",
"免佣": "免佣",
}

assertCases(t, cc, cases)
Expand Down

0 comments on commit eec5c56

Please sign in to comment.