From def011c0291741b0ab3566a01d939374712719c8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 20 Dec 2022 23:24:49 +0900 Subject: Fix parse error of actions with arguments --- src/options_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/options_test.go') diff --git a/src/options_test.go b/src/options_test.go index 14ede09b..fbf319e0 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -489,3 +489,13 @@ func TestParseSingleActionList(t *testing.T) { t.Errorf("Invalid action parsed: %v", actions[3]) } } + +func TestParseSingleActionListError(t *testing.T) { + err := "" + parseSingleActionList("change-query(foobar)baz", func(e string) { + err = e + }) + if len(err) == 0 { + t.Errorf("Failed to detect error") + } +} -- cgit v1.2.3