Mercurial > vim
comparison src/testdir/summarize.vim @ 16976:7160dcd5c1d2 v8.1.1488
patch 8.1.1488: summary of tests has incorrect failed count
commit https://github.com/vim/vim/commit/150f0550f45b836200a189e4d34417f4d3467455
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 7 21:29:50 2019 +0200
patch 8.1.1488: summary of tests has incorrect failed count
Problem: Summary of tests has incorrect failed count.
Solution: Add to the failed count instead of setting it. (Christian Brabandt)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Jun 2019 21:30:05 +0200 |
parents | 54c2fe0eff03 |
children | 7f95fa061abc |
comparison
equal
deleted
inserted
replaced
16975:484cc6f86870 | 16976:7160dcd5c1d2 |
---|---|
4 set nocp | 4 set nocp |
5 func Count(match, type) | 5 func Count(match, type) |
6 if a:type ==# 'executed' | 6 if a:type ==# 'executed' |
7 let g:executed += (a:match+0) | 7 let g:executed += (a:match+0) |
8 elseif a:type ==# 'failed' | 8 elseif a:type ==# 'failed' |
9 let g:failed = a:match+0 | 9 let g:failed += a:match+0 |
10 elseif a:type ==# 'skipped' | 10 elseif a:type ==# 'skipped' |
11 let g:skipped += 1 | 11 let g:skipped += 1 |
12 call extend(g:skipped_output, ["\t".a:match]) | 12 call extend(g:skipped_output, ["\t".a:match]) |
13 endif | 13 endif |
14 endfunc | 14 endfunc |