mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
fix(oldtest): fix assert_match() for :buffers t
Previous pattern could cause test to fail if ":buffers t" reported "1 second ago".
This commit is contained in:
@@ -47,7 +47,7 @@ func Test_buffers_lastused()
|
||||
endfor
|
||||
|
||||
call assert_equal(['bufb', 'bufa', 'bufc'], names)
|
||||
call assert_match('[0-2] seconds ago', bufs[1][1])
|
||||
call assert_match('[0-2] seconds\= ago', bufs[1][1])
|
||||
|
||||
bwipeout bufa
|
||||
bwipeout bufb
|
||||
|
Reference in New Issue
Block a user