Test s:split does not use regex

This commit is contained in:
Andy Stewart
2019-09-27 13:16:23 +01:00
parent 6b08e1425b
commit 883b2be1db

View File

@@ -1048,4 +1048,5 @@ function Test_split()
call assert_equal(['foo', 'baz'], gitgutter#diff_highlight#split('foobarbaz', 'bar'))
call assert_equal(['', 'barbaz'], gitgutter#diff_highlight#split('foobarbaz', 'foo'))
call assert_equal(['foobar', ''], gitgutter#diff_highlight#split('foobarbaz', 'baz'))
call assert_equal(['1', '2'], gitgutter#diff_highlight#split('1~2', '~'))
endfunction