From d65c35a69d0fd7ae6e809e83a33b0d4eaf6b346f Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 31 Mar 2015 00:54:58 +0200 Subject: [PATCH] Problem with multi definitions tokenize tests. Jedi behaves different now, therefore I have disabled the tests. Once we find another example where it actually makes sense to test it, we can reenable the tests. --- test/goto.vim | 61 +++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/test/goto.vim b/test/goto.vim index 3d6a2ad..d86dc3b 100644 --- a/test/goto.vim +++ b/test/goto.vim @@ -73,21 +73,24 @@ describe 'goto_with_tabs' end it 'multi_definitions' - put = ['import tokenize'] - silent normal G$\d - Expect CurrentBufferIsModule('tokenize') == 0 - Expect CurrentBufferIsModule('token') == 0 - execute "normal \" - Expect tabpagenr('$') == 2 - Expect winnr('$') == 1 - Expect CurrentBufferIsModule('token') == 1 + " This used to behave differently. Now we don't have any real multi + " definitions. + + " put = ['import tokenize'] + " silent normal G$\d + " Expect CurrentBufferIsModule('tokenize') == 1 + " Expect CurrentBufferIsModule('token') == 0 + " execute "normal \" + " Expect tabpagenr('$') == 2 + " Expect winnr('$') == 1 + " Expect CurrentBufferIsModule('token') == 1 - bd - silent normal G$\d - execute "normal j\" - Expect tabpagenr('$') == 2 - Expect winnr('$') == 1 - Expect CurrentBufferIsModule('tokenize') == 1 + " bd + " silent normal G$\d + " execute "normal j\" + " Expect tabpagenr('$') == 2 + " Expect winnr('$') == 1 + " Expect CurrentBufferIsModule('tokenize') == 1 end end @@ -122,22 +125,22 @@ describe 'goto_with_buffers' end it 'multi_definitions' - set hidden - put = ['import tokenize'] - silent normal G$\d - Expect CurrentBufferIsModule('tokenize') == 0 - Expect CurrentBufferIsModule('token') == 0 - execute "normal \" - Expect tabpagenr('$') == 1 - Expect winnr('$') == 1 - Expect CurrentBufferIsModule('token') == 1 + " set hidden + " put = ['import tokenize'] + " silent normal G$\d + " Expect CurrentBufferIsModule('tokenize') == 0 + " Expect CurrentBufferIsModule('token') == 0 + " execute "normal \" + " Expect tabpagenr('$') == 1 + " Expect winnr('$') == 1 + " Expect CurrentBufferIsModule('token') == 1 - bd - silent normal G$\d - execute "normal j\" - Expect tabpagenr('$') == 1 - Expect winnr('$') == 1 - Expect CurrentBufferIsModule('tokenize') == 1 + " bd + " silent normal G$\d + " execute "normal j\" + " Expect tabpagenr('$') == 1 + " Expect winnr('$') == 1 + " Expect CurrentBufferIsModule('tokenize') == 1 end end