diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2022-12-20 23:24:49 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-12-21 01:35:08 +0900 |
| commit | def011c0291741b0ab3566a01d939374712719c8 (patch) | |
| tree | 5a255f880be93a342247a912cd4fa73fe8ed381f /src/options_test.go | |
| parent | 4b055bf260768780fce345fdb88abeb826122315 (diff) | |
| download | fzf-def011c0291741b0ab3566a01d939374712719c8.tar.gz | |
Fix parse error of actions with arguments
Diffstat (limited to 'src/options_test.go')
| -rw-r--r-- | src/options_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
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") + } +} |
