Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 免佣 #15

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading