Skip to content

Commit eec5c56

Browse files
authored
Fix 免佣 (#15)
This reverts commit 0abb637.
1 parent a7cff5c commit eec5c56

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
2-
1+
2+

addition-dictionary/STPhrases.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
公厘 公厘
77
厘米 厘米
88
汇总 匯總
9-
开户 開戶
10-
佣金 佣金
9+
开户 開戶

dictionary/STCharacters.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3978,5 +3978,5 @@
39783978
𰾄 鋂
39793979
𰾭 鑀
39803980
𱊜 𪈼
3981-
3982-
3981+
3982+

dictionary/STPhrases.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49064,5 +49064,4 @@
4906449064
公厘 公厘
4906549065
厘米 厘米
4906649066
汇总 匯總
49067-
开户 開戶
49068-
佣金 佣金
49067+
开户 開戶

opencc_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"testing"
66
)
77

8-
func assertCases(t *testing.T, cc *OpenCC, cases map[string]string) {
8+
func assertCases(t *testing.T, s2t *OpenCC, cases map[string]string) {
99
t.Helper()
1010

1111
for k, v := range cases {
12-
str, err := cc.Convert(k)
12+
str, err := s2t.Convert(k)
1313
if err != nil {
1414
t.Error(err)
1515
}
@@ -56,6 +56,7 @@ func TestConvert_s2hk_finance(t *testing.T) {
5656
"套利交易": "對沖",
5757
"下周开始公开配售": "下週開始公開招股",
5858
"户": "戶",
59+
"免佣": "免佣",
5960
}
6061

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

7980
assertCases(t, cc, cases)

0 commit comments

Comments
 (0)