Fix bind spec parser

This commit is contained in:
Junegunn Choi
2022-12-23 15:37:39 +09:00
parent 73162a4bc3
commit 8e283f512a
2 changed files with 14 additions and 1 deletions

View File

@@ -499,3 +499,12 @@ func TestParseSingleActionListError(t *testing.T) {
t.Errorf("Failed to detect error")
}
}
func TestMaskActionContents(t *testing.T) {
original := ":execute((f)(o)(o)(b)(a)(r))+change-query@qu@ry@+up,x:reload:hello:world"
expected := ":execute +change-query +up,x:reload "
masked := maskActionContents(original)
if masked != expected {
t.Errorf("Not masked: %s", masked)
}
}