diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-15 22:39:48 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-15 22:39:48 +0900 |
| commit | 717562b264a49a25c8b934d174e959b33bd02681 (patch) | |
| tree | 43385366c9098de3c4cba0d98fd54a4e5770b117 /src/tokenizer_test.go | |
| parent | 9d6637c1b3b3c7c0a6eadbc73fe887e11ab14b72 (diff) | |
| download | fzf-717562b264a49a25c8b934d174e959b33bd02681.tar.gz | |
Disallow incorrect wrapping range expression for --nth
Diffstat (limited to 'src/tokenizer_test.go')
| -rw-r--r-- | src/tokenizer_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tokenizer_test.go b/src/tokenizer_test.go index 3119f797..39f32dc8 100644 --- a/src/tokenizer_test.go +++ b/src/tokenizer_test.go @@ -40,6 +40,18 @@ func TestParseRange(t *testing.T) { t.Errorf("%v", r) } } + { + i := "1..3..5" + if r, ok := ParseRange(&i); ok { + t.Errorf("%v", r) + } + } + { + i := "-3..3" + if r, ok := ParseRange(&i); ok { + t.Errorf("%v", r) + } + } } func TestTokenize(t *testing.T) { |
