summaryrefslogtreecommitdiff
path: root/src/tokenizer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer_test.go')
-rw-r--r--src/tokenizer_test.go12
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) {