Mercurial > vim
comparison src/testdir/test_profile.vim @ 10609:302aedeed8c9 v8.0.0194
patch 8.0.0194: profile tests fails if total and self time are equal
commit https://github.com/vim/vim/commit/e32bbded641a5da0263ecf82f9ccc95a8e0a089e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 15 21:12:48 2017 +0100
patch 8.0.0194: profile tests fails if total and self time are equal
Problem: Profile tests fails if total and self time are equal.
Solution: Make one time optional.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 15 Jan 2017 21:15:04 +0100 |
parents | 2748b23db6bb |
children | 196757b230a2 |
comparison
equal
deleted
inserted
replaced
10608:9f1180d6bb28 | 10609:302aedeed8c9 |
---|---|
111 " First line of loop executes one more time than body to detect end of loop. | 111 " First line of loop executes one more time than body to detect end of loop. |
112 call assert_match('^\s*22\s\+\d\+\.\d\+\s\+for i in range(10)$', lines[8]) | 112 call assert_match('^\s*22\s\+\d\+\.\d\+\s\+for i in range(10)$', lines[8]) |
113 call assert_equal(' " a comment', lines[9]) | 113 call assert_equal(' " a comment', lines[9]) |
114 call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10]) | 114 call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10]) |
115 call assert_match('^\s*20\s\+\d\+\.\d\+\s\+endfor$', lines[11]) | 115 call assert_match('^\s*20\s\+\d\+\.\d\+\s\+endfor$', lines[11]) |
116 call assert_match('^\s*2\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[12]) | 116 " if self and total are equal we only get one number |
117 call assert_match('^\s*2\s\+\(\d\+\.\d\+\s\+\)\=\d\+\.\d\+\s\+call Foo()$', lines[12]) | |
117 call assert_equal('', lines[13]) | 118 call assert_equal('', lines[13]) |
118 | 119 |
119 call delete('Xprofile_file.vim') | 120 call delete('Xprofile_file.vim') |
120 call delete('Xprofile_file.log') | 121 call delete('Xprofile_file.log') |
121 endfunc | 122 endfunc |