From 8e283f512acb74faef6f1760927e1ef4da1b5263 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 23 Dec 2022 15:37:39 +0900 Subject: Fix bind spec parser --- src/options_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/options_test.go') diff --git a/src/options_test.go b/src/options_test.go index fbf319e0..8754716c 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -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) + } +} -- cgit v1.2.3