diff options
author | Gokcehan <gokcehankara@gmail.com> | 2016-12-03 00:38:23 +0300 |
---|---|---|
committer | Gokcehan <gokcehankara@gmail.com> | 2016-12-03 00:38:23 +0300 |
commit | 225bd5b49c3d5c1a4a3a16e6606fb624ca4f6a40 (patch) | |
tree | 08d89d2bf1210f57dbaa342b308af23f436c8723 /misc_test.go | |
parent | 932e644c93c8699a13b4e05c8b4205fee197d903 (diff) |
fix number extraction ending with number
Diffstat (limited to 'misc_test.go')
-rw-r--r-- | misc_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc_test.go b/misc_test.go index a76a9bb..cc363c4 100644 --- a/misc_test.go +++ b/misc_test.go @@ -210,6 +210,8 @@ func TestExtractNums(t *testing.T) { }{ {"foo123bar456", []int{123, 456}, []string{"foo", "bar"}, false}, {"123foo456bar", []int{123, 456}, []string{"foo", "bar"}, true}, + {"a-1-1", []int{1, 1}, []string{"a-", "-"}, false}, + {"a-1-1.", []int{1, 1}, []string{"a-", "-", "."}, false}, {"a-1-1.txt", []int{1, 1}, []string{"a-", "-", ".txt"}, false}, {"a-1-10.txt", []int{1, 10}, []string{"a-", "-", ".txt"}, false}, {"a-10-1.txt", []int{10, 1}, []string{"a-", "-", ".txt"}, false}, |