Feature/trie ac automation (#1479)

* fix: trie ac automation issues

* fix: trie ac automation issues

* fix: trie ac automation issues

* fix: trie ac automation issues
This commit is contained in:
Kevin Wan
2022-01-25 11:14:56 +08:00
committed by GitHub
parent cdf7ec213c
commit b3e7d2901f
4 changed files with 296 additions and 40 deletions

View File

@@ -83,7 +83,7 @@ func TestReplacer_ReplaceEmpty(t *testing.T) {
assert.Equal(t, "", NewReplacer(mapping).Replace(""))
}
func TestFuzzCase1(t *testing.T) {
func TestFuzzReplacerCase1(t *testing.T) {
keywords := map[string]string{
"yQyJykiqoh": "xw",
"tgN70z": "Q2P",
@@ -115,7 +115,7 @@ func TestFuzzCase1(t *testing.T) {
}
}
func TestFuzzCase2(t *testing.T) {
func TestFuzzReplacerCase2(t *testing.T) {
keywords := map[string]string{
"dmv2SGZvq9Yz": "TE",
"rCL5DRI9uFP8": "hvsc8",