aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_profile.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test_profile.vim')
-rw-r--r--src/nvim/testdir/test_profile.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_profile.vim b/src/nvim/testdir/test_profile.vim
index 36c05683d5..23d148e47d 100644
--- a/src/nvim/testdir/test_profile.vim
+++ b/src/nvim/testdir/test_profile.vim
@@ -113,7 +113,8 @@ func Test_profile_file()
call assert_equal(' " a comment', lines[9])
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10])
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+endfor$', lines[11])
- call assert_match('^\s*2\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[12])
+ " if self and total are equal we only get one number
+ call assert_match('^\s*2\s\+\(\d\+\.\d\+\s\+\)\=\d\+\.\d\+\s\+call Foo()$', lines[12])
call assert_equal('', lines[13])
call delete('Xprofile_file.vim')