diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-05 19:32:44 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-05 19:32:44 +0900 |
commit | ee2ee025993421b243ef668e4d4ee395a5201820 (patch) | |
tree | ac4f259cea0ddbff40b4dc7ce60546ee55319f58 /src/tokenizer_test.go | |
parent | b42dcdb7a747cd5c7a412ca1dc8b7eb73b64f084 (diff) |
Fix index out of bounds error during Transform
Diffstat (limited to 'src/tokenizer_test.go')
-rw-r--r-- | src/tokenizer_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tokenizer_test.go b/src/tokenizer_test.go index ed77efe9..1ae0c7ee 100644 --- a/src/tokenizer_test.go +++ b/src/tokenizer_test.go @@ -95,3 +95,7 @@ func TestTransform(t *testing.T) { } } } + +func TestTransformIndexOutOfBounds(t *testing.T) { + Transform([]Token{}, splitNth("1")) +} |