colorfull

This commit is contained in:
mattn
2010-03-01 18:17:50 +09:00
parent 50cc0229f0
commit b70c4881d9

View File

@@ -3,13 +3,14 @@ so zencoding.vim
unlet! testgroups
let testgroups = eval(join(filter(split(substitute(join(readfile(expand('<sfile>')), "\n"), '.*\nfinish\n', '', ''), '\n', 1), "v:val !~ '^\"'")))
for testgroup in testgroups
echohl Visual | echon "[" testgroup.category."]\n" | echohl None
echohl MatchParen | echon "[" testgroup.category."]\n" | echohl None
let tests = testgroup.tests
let start = reltime()
for n in range(len(tests))
let testtitle = tests[n].name
let testtitle = len(testtitle) < 57 ? (testtitle.repeat(' ', 57-len(testtitle))) : strpart(testtitle, 0, 57)
echon "testing #".printf("%03d", n+1)": ".testtitle." ... "
echohl ModeMsg | echon "testing #".printf("%03d", n+1)
echohl None | echon ": ".testtitle." ... "
unlet! res | let res = ZenExpand(tests[n].query, '', 0)
if res == tests[n].result
echohl Title | echon "ok\n" | echohl None