aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-07-29 02:00:48 +0200
committerGitHub <noreply@github.com>2018-07-29 02:00:48 +0200
commitbefc7de26f2907fdf0c61b883c68c7a64432aa03 (patch)
tree3fa1225c46ed72b4e6d67772ef07468ea2d2cf1b /src/nvim/testdir
parenta4494b7cbc8b33932f53951d920aa3826b51935a (diff)
parent7c7701af1279996c999507750d4beb79ee0f03e0 (diff)
downloadrneovim-befc7de26f2907fdf0c61b883c68c7a64432aa03.tar.gz
rneovim-befc7de26f2907fdf0c61b883c68c7a64432aa03.tar.bz2
rneovim-befc7de26f2907fdf0c61b883c68c7a64432aa03.zip
Merge pull request #8770 from janlazo/vim-8.0.0726
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_functions.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim
index c59134908c..3b16f2ce9f 100644
--- a/src/nvim/testdir/test_functions.vim
+++ b/src/nvim/testdir/test_functions.vim
@@ -680,7 +680,13 @@ func Test_count()
call assert_equal(0, count(d, 'c', 1))
call assert_fails('call count(d, "a", 0, 1)', 'E474:')
- call assert_fails('call count("a", "a")', 'E712:')
+
+ call assert_equal(0, count("foo", "bar"))
+ call assert_equal(1, count("foo", "oo"))
+ call assert_equal(2, count("foo", "o"))
+ call assert_equal(0, count("foo", "O"))
+ call assert_equal(2, count("foo", "O", 1))
+ call assert_equal(2, count("fooooo", "oo"))
endfunc
func Test_changenr()